
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIIndexCalculator
@protocol ISCIIndexCalculator <NSObject>
Defines protocol which allows to transform values to indices and vice versa.
-
Gets index of specified
value
in sequence defined by thisISCIIndexDataProvider
instance.Declaration
Objective-C
- (double)getIndexFrom:(double)value;
Parameters
value
The value to get index for.
Return Value
The index of specified value.
-
Gets value for specified
index
in sequence defined by thisISCIIndexDataProvider
instance.Declaration
Objective-C
- (double)getValueFrom:(double)index;
Parameters
index
The index to get value for
Return Value
The value at specified index
-
Gets indices of specified
values
in sequence defined by thisISCIIndexDataProvider
instance.Declaration
Objective-C
- (void)getIndices:(nonnull float *)indices fromDataValues:(nonnull double *)dataValues count:(NSInteger)count;
Parameters
dataValues
The values to get indices for.
indices
The target indices array.
count
Amount of points to transform.
-
Gets values for specified
indices
in sequence defined by thisISCIIndexDataProvider
instance.Declaration
Objective-C
- (void)getValues:(nonnull double *)dataValues fromIndices:(nonnull double *)indices count:(NSInteger)count;
Parameters
indices
The indices to get values for.
dataValues
The target values array.
count
Amount of points to transform.