API / geotoolkit / data / OptimizedData / OptimizedData
data.OptimizedData.OptimizedData
The OptimizedData is a helper object that decorate ScaledData and allows to optimize it
↳
OptimizedData
Constructors
Methods
Constructors
• new OptimizedData(scaledData, useXAxisForX?)
Create OptimizedData
| Name | Type | Description |
|---|---|---|
scaledData | AbstractScaledData | abstract scaled data |
Optional useXAxisForX | boolean | use OX axis for x coordinate of the sample |
AbstractScaledData.constructor
Methods
▸ convertValueFromSource(v, d?): number
Convert value from original source to current scaled data
| Name | Type | Description |
|---|---|---|
v | number | value of the original data source |
Optional d | number | depth of the original data source |
number
AbstractScaledData.convertValueFromSource
▸ convertValueFromSource(v, d?): number[]
Convert array of values from original source to current scaled data
| Name | Type | Description |
|---|---|---|
v | number[] | array of values of the original data source |
Optional d | number[] | array of depths of the original data source |
number[]
AbstractScaledData.convertValueFromSource
▸ convertValueToSource(v): number
Convert value from scaled data source to original source
| Name | Type | Description |
|---|---|---|
v | number | value of the scaled data source |
number
AbstractScaledData.convertValueToSource
▸ convertValueToSource(v): number[]
Convert array of values from scaled data source to original source
| Name | Type | Description |
|---|---|---|
v | number[] | array of values of the scaled data source |
number[]
AbstractScaledData.convertValueToSource
▸ getClassName(): string
string
AbstractScaledData.getClassName
▸ getDataOrder(): Order
return the order of the data set
AbstractScaledData.getDataOrder
▸ getIndexRange(fromPosition, toPosition): Range
Return a wrap levels, If data doesn't have wraps than it returns null
| Name | Type | Description |
|---|---|---|
fromPosition | number | from position |
toPosition | number | to position |
AbstractScaledData.getIndexRange
▸ getLength(needOptimization?): number
Gets a count of samples either optimized or not
| Name | Type | Description |
|---|---|---|
Optional needOptimization | boolean | is optimization needed |
number
▸ getMaxPosition(): number
Gets max depth
number
AbstractScaledData.getMaxPosition
▸ getMaxValue(): number
Gets max value
number
AbstractScaledData.getMaxValue
▸ getMaxWrapLevel(): number
Gets max wrap level
number
AbstractScaledData.getMaxWrapLevel
▸ getMinPosition(): number
Gets min depth
number
AbstractScaledData.getMinPosition
▸ getMinValue(): number
Gets min value
number
AbstractScaledData.getMinValue
▸ getMinWrapLevel(): number
Gets min wrap level
number
AbstractScaledData.getMinWrapLevel
▸ getOptimization(): boolean
Returns the state of optimization, is it on or off
boolean
needOptimization Is optimization on`
▸ getPositionArray(needOptimization?): number[]
Gets position array either optimized or not
| Name | Type | Description |
|---|---|---|
Optional needOptimization | boolean | Is optimization needed |
number[]
Position array
AbstractScaledData.getPositionArray
▸ getProperties(): Record<string, any>
Gets all the properties pertaining to this object
Record<string, any>
AbstractScaledData.getProperties
▸ getSample(index): DataSample
Return sample at specified index
| Name | Type | Description |
|---|---|---|
index | number | sample index |
sample.
▸ getSamples(needOptimization?): DataSample[]
Gets scaled samples
| Name | Type |
|---|---|
Optional needOptimization | boolean |
▸ getSource(): any
Get data source
any
▸ getValue(position): number
Returns value at specified position
| Name | Type | Description |
|---|---|---|
position | number | position to return value |
number
return value by position
▸ getValueArray(needOptimization?): number[]
Gets value array either optimized or not
| Name | Type | Description |
|---|---|---|
Optional needOptimization | boolean | Is optimization needed |
number[]
Value array
AbstractScaledData.getValueArray
▸ getValueAt(depth): number
Gets value
| Name | Type |
|---|---|
depth | number |
number
▸ isForwardOnly(): boolean
Is data source forward only
boolean
AbstractScaledData.isForwardOnly
▸ isOutdated(): boolean
If data is outdated
boolean
▸ setConversion(conversion): OptimizedData
Sets conversion
| Name | Type | Description |
|---|---|---|
conversion | DataConversion | conversion of the data |
this
AbstractScaledData.setConversion
▸ setInterpolation(interpolation): OptimizedData
Sets interpolation
| Name | Type | Description |
|---|---|---|
interpolation | DataInterpolation | algorithm to interpolate samples |
this
AbstractScaledData.setInterpolation
▸ setModelToDevice(modelToDevice): OptimizedData
Sets transformation for which optimization was/will be calculated
| Name | Type | Description |
|---|---|---|
modelToDevice | Transformation | model to device transformation |
this
▸ setOptimization(needOptimization?): OptimizedData
Turns on/off optimization
| Name | Type | Description |
|---|---|---|
Optional needOptimization | boolean | Is optimization on |
this
▸ setOptimizationType(optimizationType): OptimizedData
Sets optimization type
| Name | Type | Description |
|---|---|---|
optimizationType | OptimizationType | optimization type which is used |
this
▸ setProperties(properties): OptimizedData
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
properties | Record<string, any> | An object containing the properties to set |
this
AbstractScaledData.setProperties
▸ Static getClassName(): string
string