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
valuein sequence defined by thisISCIIndexDataProviderinstance.Declaration
Objective-C
- (double)getIndexFrom:(double)value;Swift
func getIndexFrom(_ value: Double) -> DoubleParameters
valueThe value to get index for.
Return Value
The index of specified value.
-
Gets value for specified
indexin sequence defined by thisISCIIndexDataProviderinstance.Declaration
Objective-C
- (double)getValueFrom:(double)index;Swift
func getValueFrom(_ index: Double) -> DoubleParameters
indexThe index to get value for
Return Value
The value at specified index
-
Gets indices of specified
valuesin sequence defined by thisISCIIndexDataProviderinstance.Declaration
Objective-C
- (void)getIndices:(nonnull float *)indices fromDataValues:(nonnull double *)dataValues count:(NSInteger)count;Swift
func getIndices(_ indices: UnsafeMutablePointer<Float>, fromDataValues dataValues: UnsafeMutablePointer<Double>, count: Int)Parameters
dataValuesThe values to get indices for.
indicesThe target indices array.
countAmount of points to transform.
-
Gets values for specified
indicesin sequence defined by thisISCIIndexDataProviderinstance.Declaration
Objective-C
- (void)getValues:(nonnull double *)dataValues fromIndices:(nonnull double *)indices count:(NSInteger)count;Swift
func getValues(_ dataValues: UnsafeMutablePointer<Double>, fromIndices indices: UnsafeMutablePointer<Double>, count: Int)Parameters
indicesThe indices to get values for.
dataValuesThe target values array.
countAmount of points to transform.
View on GitHub