Last updated

API / geotoolkit / gridding / KrigingInterpolator / KrigingInterpolator

Class: KrigingInterpolator

gridding.KrigingInterpolator.KrigingInterpolator

Class implements Kriging algorithm. See https://en.wikipedia.org/wiki/Kriging for more details. (based on implementation by Omar Olmedo, released under The MIT License)

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new KrigingInterpolator(options)

new KrigingInterpolator(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

AbstractInterpolator.constructor

Methods

getClassName

getClassName(): string

Returns

string

Inherited from

AbstractInterpolator.getClassName


getValues

getValues(xSeries, ySeries): Promise<number[]>

Get interpolate z series by (x,y) pairs. Returns Promise, which resolves with array of z-series

Parameters

Name Type Description
xSeriesnumber[]x series
ySeriesnumber[]y series

Returns

Promise<number[]>

Overrides

AbstractInterpolator.getValues


isWasmEnabled

isWasmEnabled(): boolean

Returns true if browser supports WebAssembly, this interpolator has such realisation and option enabled in this interpolator

Returns

boolean

Inherited from

AbstractInterpolator.isWasmEnabled


isWasmSupported

Protected isWasmSupported(): boolean

If this interpolator supports WebAssembly

Returns

boolean

Inherited from

AbstractInterpolator.isWasmSupported


prepare

prepare(xSeries, ySeries, zSeries): Promise<void>

Prepare data and run training

Parameters

Name Type Description
xSeriesnumber[]x series
ySeriesnumber[]y series
zSeriesnumber[]z series

Returns

Promise<void>

Inherited from

AbstractInterpolator.prepare


train

Protected train(xSeries, ySeries, zSeries): Promise<void>

Teach algorithm with existing points. Internal use.

Parameters

Name Type Description
xSeriesnumber[]x series
ySeriesnumber[]y series
zSeriesnumber[]z series

Returns

Promise<void>

Overrides

AbstractInterpolator.train


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractInterpolator.getClassName