API / geotoolkit / data / DataSeriesUtil / DataSeriesUtil
data.DataSeriesUtil.DataSeriesUtil
Provides a set of methods to operate with DataSeries
Constructors
Methods
Methods
▸ Static mergeValues(src, dst): void
Merge data series from source to destination This function works ONLY if the existing data is ASC ordered.
Example
Depth Value
50 0
100 1
200 2
300 3
mergeValues: [0,100,150,500], [-1,-100,-150,-500]
---- Depth Value
===> 0 -1
---- 50 0
===> 100 -100
===> 150 -150
---- 200 2
---- 300 3
===> 500 -500Throws
if src.index or dst.index is not NumericalDataSeries
| Name | Type | Description |
|---|---|---|
src | Source | object to represent source data |
dst | Destination | object to represent destination data |
void
▸ Static trimValues(indexSeries, startIndexValue, endIndexValue, arrayOfSeries, datatable?): void
Remove values from start to end value of the index series and corresponded indices of the other series. All series must have the same size.
Throws
if indexSeries is not NumericalDataSeries
| Name | Type | Description |
|---|---|---|
indexSeries | NumericalDataSeries | series to represent index data |
startIndexValue | number | start value of the index series where to start trim |
endIndexValue | number | end value of the index series where to end trim |
arrayOfSeries | DataSeries<any>[] | array of data series |
Optional datatable | DataTable | optional data table as a host of destination series |
void