Last updated

API / geotoolkit / gridding / AbstractInterpolator / AbstractInterpolator

Class: AbstractInterpolator

gridding.AbstractInterpolator.AbstractInterpolator

Abstract class for gridding interpolators

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new AbstractInterpolator(options)

Protected new AbstractInterpolator(options?)

Parameters

Name Type
Optional optionsOptions
Methods

getClassName

getClassName(): string

Returns

string


getValues

Abstract 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[]>


isWasmEnabled

isWasmEnabled(): boolean

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

Returns

boolean


isWasmSupported

Protected isWasmSupported(): boolean

If this interpolator supports WebAssembly

Returns

boolean


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>


train

Protected Abstract 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>


getClassName

Static getClassName(): string

Returns

string