Constructor
new Multiquadric(copt)
- Source:
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
c |
number |
<optional> |
0
|
Classes
Members
c :number
- Description:
constant added to the square of the difference
- Source:
constant added to the square of the difference
Type:
- number
Methods
gradient(x1, x2) → {Array.<number>}
- Description:
gradient = [grad_c]: grad_c = c / hypot(‖x−y‖, c) NOTE: faithful to Rust latent bug — uses the NON-squared norm here (inconsistent with kernel()'s squared norm).
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
x1 |
Array.<number> | |
x2 |
Array.<number> |
Returns:
- Type
- Array.<number>
kernel(x1, x2) → {number}
- Description:
k(x,y) = hypot(‖x−y‖², c) = sqrt(‖x−y‖⁴ + c²). NOTE: faithful to Rust latent bug — uses the SQUARED norm inside hypot (inconsistent with gradient()'s non-squared norm).
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
x1 |
Array.<number> | |
x2 |
Array.<number> |
Returns:
- Type
- number
setParameters(parameters)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
parameters |
Array.<number> | NOTE: faithful to Rust latent bug — reads index 1, while getParameters
returns |