Class DefaultIndexCalculator
Default implementation of IIndexCalculator
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public final class DefaultIndexCalculator implements indexDataProvider.IIndexCalculator
Constructors
DefaultIndexCalculator(DoubleValues indexValues)
Declaration
public DefaultIndexCalculator(DoubleValues indexValues)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleValues | indexValues |
Methods
getIndex(double value)
Gets index of specified value in sequence defined by this IIndexDataProvider instance
Declaration
public double getIndex(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | The value to get index for |
Returns
| Type | Description |
|---|---|
| double |
getIndices(double[] values, float[] indices, int count)
Gets indices of specified values in sequence defined by this IIndexDataProvider instance
Declaration
public 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 final double getValue(double index)
Parameters
| Type | Name | Description |
|---|---|---|
| double | index | The index to get value for |
Returns
| Type | Description |
|---|---|
| double |
getValues(double[] indices, double[] values, int count)
Gets values for specified indices in sequence defined by this IIndexDataProvider instance
Declaration
public 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 |