Interface IIndexCalculator
Defines an interface which allows to transform values to indices and vice versa
Namespace:
Assembly: .dll
Syntax
public interface IIndexCalculator
Methods
getIndex(double value)
Gets index of specified value in sequence defined by this IIndexDataProvider instance
Declaration
public abstract double getIndex(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | The value to get index for |
Returns
| Type | Description |
|---|---|
| double | The index of specified value |
getIndices(double[] values, float[] indices, int count)
Gets indices of specified values in sequence defined by this IIndexDataProvider instance
Declaration
public abstract void getIndices(double[] values, float[] indices, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| double[] | values | The values to get indices for |
| float[] | indices | The target indices array |
| int | count | Amount of points to transform |
getValue(double index)
Gets value for specified index in sequence defined by this IIndexDataProvider instance
Declaration
public abstract double getValue(double index)
Parameters
| Type | Name | Description |
|---|---|---|
| double | index | The index to get value for |
Returns
| Type | Description |
|---|---|
| double | The value at specified index |
getValues(double[] indices, double[] values, int count)
Gets values for specified indices in sequence defined by this IIndexDataProvider instance
Declaration
public abstract void getValues(double[] indices, double[] values, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| double[] | indices | The indices to get values for |
| double[] | values | The target values array |
| int | count | Amount of points to transform |