Click or drag to resize
DigitalRuneScatteredInterpolationF Class
Base class for scattered interpolation methods (single-precision).
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionPairVectorF, VectorF
    DigitalRune.Mathematics.InterpolationScatteredInterpolationF
      DigitalRune.Mathematics.InterpolationRadialBasisRegressionF
      DigitalRune.Mathematics.InterpolationShepardInterpolationF

Namespace: DigitalRune.Mathematics.Interpolation
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public abstract class ScatteredInterpolationF : Collection<Pair<VectorF, VectorF>>

The ScatteredInterpolationF type exposes the following members.

Constructors
  NameDescription
Protected methodScatteredInterpolationF
Initializes a new instance of the ScatteredInterpolationF class
Top
Methods
  NameDescription
Public methodAdd (Inherited from CollectionPairVectorF, VectorF.)
Public methodClear (Inherited from CollectionPairVectorF, VectorF.)
Protected methodClearItems (Overrides CollectionTClearItems.)
Public methodCompute
Computes a y value for the specified x value using scattered interpolation.
Public methodContains (Inherited from CollectionPairVectorF, VectorF.)
Public methodCopyTo (Inherited from CollectionPairVectorF, VectorF.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator (Inherited from CollectionPairVectorF, VectorF.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from CollectionPairVectorF, VectorF.)
Public methodInsert (Inherited from CollectionPairVectorF, VectorF.)
Protected methodInsertItem (Overrides CollectionTInsertItem(Int32, T).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnCompute
Called when Compute(VectorF) is called.
Protected methodOnSetup
Public methodRemove (Inherited from CollectionPairVectorF, VectorF.)
Public methodRemoveAt (Inherited from CollectionPairVectorF, VectorF.)
Protected methodRemoveItem (Overrides CollectionTRemoveItem(Int32).)
Protected methodSetItem
Replaces the element at the specified index.
(Overrides CollectionTSetItem(Int32, T).)
Public methodSetup
Prepares the scattered interpolation.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCount (Inherited from CollectionPairVectorF, VectorF.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from CollectionPairVectorF, VectorF.)
Protected propertyItems (Inherited from CollectionPairVectorF, VectorF.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIListAdd
Adds an item to the IList.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate methodIListContains
Determines whether the IList contains a specific value.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate methodIListIndexOf
Determines the index of a specific item in the IList.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate methodIListInsert
Inserts an item into the IList at the specified index.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate propertyIListIsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate propertyICollectionTIsReadOnly (Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate propertyIListIsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate propertyIListItem
Gets or sets the element at the specified index.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate methodIListRemove
Removes the first occurrence of a specific object from the IList.
(Inherited from CollectionPairVectorF, VectorF.)
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from CollectionPairVectorF, VectorF.)
Top
Remarks

Scattered interpolation solves the following problem: Several data pairs have been observed: (x1, y1), (x2, y2), (x3, y3), ... These are the reference data values. Now a new x is measured and the y value for the given x is wanted.

The x values are m-dimensional vectors. The y values are n-dimensional vectors. All x vectors must have equal dimensions and all y vectors must have equal dimensions. But the dimension of the x vectors are usually different than the dimension of the y vectors.

How to use this class:

  1. First the reference data pairs have to be created using the class PairTFirst, TSecond and registered by calling Add(T). The first item of each data pair is the x vector, the second item is the y vector. For example:
    C#
    scatteredInterpolation.Add(new Pair<VectorF, VectorF>(x, y));
  2. After all reference data pairs are added, Setup has to be called.
  3. Then Compute(VectorF) can be called to compute y values for any given x values. If the reference data pairs are changed, it is necessary to call Setup before the next call of Compute(VectorF).

Notes to Inheritors: Derived types need to implement the methods OnSetup and OnCompute(VectorF).

See Also