Methods
_predict
- _predict(x, y, z, variogram): number
Parameters
x: number
y: number
z: number
variogram: {
A: any;
M: number[];
model: ((arg0, arg1, arg2, arg3, arg4) => void);
n: number;
nugget: any;
range: any;
sill: any;
x: number[];
y: number[];
z: number[];
}
A: any
M: number[]
model: ((arg0, arg1, arg2, arg3, arg4) => void)
- (arg0, arg1, arg2, arg3, arg4): void
Parameters
arg0: number
arg1: any
arg2: any
arg3: any
arg4: any
Returns void
n: number
nugget: any
range: any
sill: any
x: number[]
y: number[]
z: number[]
Returns number
_variance
- _variance(x, y, z, variogram): any
Parameters
x: number
y: number
z: number
variogram: {
A: any;
K: number[];
model: {
(arg0, arg1, arg2, arg3, arg4): void;
(arg0, arg1, arg2, arg3, arg4): number;
};
n: number;
nugget: any;
range: any;
sill: any;
x: number[];
y: number[];
z: number[];
}
A: any
K: number[]
model: {
(arg0, arg1, arg2, arg3, arg4): void;
(arg0, arg1, arg2, arg3, arg4): number;
}
- (arg0, arg1, arg2, arg3, arg4): void
Parameters
arg0: number
arg1: any
arg2: any
arg3: any
arg4: any
Returns void
- (arg0, arg1, arg2, arg3, arg4): number
Parameters
arg0: number
arg1: any
arg2: any
arg3: any
arg4: any
Returns number
n: number
nugget: any
range: any
sill: any
x: number[]
y: number[]
z: number[]
Returns any
invDist
- invDist(x, y, z): number
Parameters
x: number
y: number
z: number
Returns number
matrixAdd
- matrixAdd(X, Y, n, m): number[]
Parameters
X: number[]
Y: number[]
n: number
m: number
Returns number[]
matrixChol
- matrixChol(X, n): boolean
Returns boolean
matrixChol2inv
- matrixChol2inv(X, n): void
Returns void
matrixDiag
- matrixDiag(c, n): number[]
Returns number[]
matrixMultiply
- matrixMultiply(X, Y, n, m, p): number[]
Parameters
X: number[]
Y: number[]
n: number
m: number
p: number
Returns number[]
matrixSolve
- matrixSolve(X, n): boolean
Returns boolean
matrixTranspose
- matrixTranspose(X, n, m): any[]
Parameters
X: any[]
n: number
m: number
Returns any[]
max
- max(source): number
Returns number
mean
- mean(source): number
Returns number
min
- min(source): number
Returns number
predict
- predict(x, y, z): number
Parameters
x: number
y: number
z: number
Returns number
predicts
- predicts(data): number[]
Parameters
data: {
x: number;
y: number;
z: number;
}[]
Returns number[]
rep
- rep(source, n): number[]
Returns number[]
train
- train(t, x, y, z, model?, sigma2?, alpha?): {
A: number;
K: any[];
M: any[];
model: ((h, nugget, range, sill, A) => number);
n: number;
nugget: number;
range: number;
sill: number;
t: number[];
x: number[];
y: number[];
z: number[];
} Parameters
t: number[]
x: number[]
y: number[]
z: number[]
Optional
model: "circle" | "linear" | "gaussian" | "exponential" | "spherical"
Optional
sigma2: any
Optional
alpha: number
Returns {
A: number;
K: any[];
M: any[];
model: ((h, nugget, range, sill, A) => number);
n: number;
nugget: number;
range: number;
sill: number;
t: number[];
x: number[];
y: number[];
z: number[];
}
A: number
K: any[]
M: any[]
model: ((h, nugget, range, sill, A) => number)
- (h, nugget, range, sill, A): number
Parameters
h: number
nugget: number
range: number
sill: number
A: number
Returns number
n: number
nugget: number
range: number
sill: number
t: number[]
x: number[]
y: number[]
z: number[]
variance
- variance(x, y, z): number
Parameters
x: number
y: number
z: number
Returns number
variogramCircle
- variogramCircle(h, nugget, range, sill): number
Parameters
h: number
nugget: number
range: number
sill: number
Returns number
variogramExponential
- variogramExponential(h, nugget, range, sill, A): number
Parameters
h: number
nugget: number
range: number
sill: number
A: number
Returns number
variogramGaussian
- variogramGaussian(h, nugget, range, sill, A): number
Parameters
h: number
nugget: number
range: number
sill: number
A: number
Returns number
variogramLinear
- variogramLinear(h, nugget, range, sill): number
Parameters
h: number
nugget: number
range: number
sill: number
Returns number
variogramSpherical
- variogramSpherical(h, nugget, range, sill): number
Parameters
h: number
nugget: number
range: number
sill: number
Returns number
插值类