Last updated

API / geotoolkit / gridding / ThinPlateInterpolator / ThinPlateInterpolator

Class: ThinPlateInterpolator

gridding.ThinPlateInterpolator.ThinPlateInterpolator

Class implements Thin Plate algorithm. See https://en.wikipedia.org/wiki/Thin_plate_spline for more details.

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new ThinPlateInterpolator(options)

new ThinPlateInterpolator(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