@itwin/core-geometry 4.3.0-dev.10 → 4.3.0-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,186 +1,241 @@
1
1
  import { Plane3dByOriginAndVectors } from "../geometry3d/Plane3dByOriginAndVectors";
2
- /** base class for Newton iterations in various dimensions.
3
- * Dimension-specific classes carry all dimension-related data and answer generalized queries
4
- * from this base class.
2
+ /**
3
+ * Base class for Newton iterations in various dimensions.
4
+ * Dimension-specific classes carry all dimension-related data and answer generalized queries from this base class.
5
5
  * @internal
6
6
  */
7
7
  export declare abstract class AbstractNewtonIterator {
8
- /** Compute a step. The current x and function values must be retained for use in later method calls */
8
+ /** Compute a step. The current x and function values must be retained for use in later method calls. */
9
9
  abstract computeStep(): boolean;
10
- /** return the current step size, scaled for use in tolerance tests.
11
- * * This is a single number, typically the max of various per-dimension `dx / (1+x)` for the x and dx of that dimension.
10
+ /**
11
+ * Return the current step size, scaled for use in tolerance tests.
12
+ * * This is a single number, typically the max of various per-dimension `dx/(1+x)` for the x and dx of that dimension.
12
13
  */
13
14
  abstract currentStepSize(): number;
14
15
  /**
15
- * Apply the current step (in all dimensions)
16
+ * Apply the current step (in all dimensions).
16
17
  * @param isFinalStep true if this is a final step.
17
18
  */
18
19
  abstract applyCurrentStep(isFinalStep: boolean): boolean;
19
20
  /**
21
+ * The constructor.
20
22
  * @param stepSizeTarget tolerance to consider a single step converged.
21
- * This number should be "moderately" strict. Because 2 successive convergences are required,
23
+ * This number should be "moderately" strict. Because 2 successive convergences are required,
22
24
  * it is expected that a first "accept" for (say) 10 to 14 digit step will be followed by another
23
- * iteration. A well behaved newton would then hypothetically double the number of digits to
24
- * 20 to 28. Since the IEEE double only carries 16 digits, this second-convergence step will
25
+ * iteration. A well behaved newton would then hypothetically double the number of digits to
26
+ * 20 to 28. Since the IEEE double only carries 16 digits, this second-convergence step will
25
27
  * typically achieve full precision.
26
28
  * @param successiveConvergenceTarget number of successive convergences required for acceptance.
27
- * @param maxIterations max number of iterations. A typical newton step converges in 3 to 6 iterations.
28
- * Allow 15 to 20 to catch difficult cases.
29
+ * @param maxIterations max number of iterations. A typical newton step converges in 3 to 6 iterations.
30
+ * Allow 15 to 20 to catch difficult cases.
29
31
  */
30
32
  protected constructor(stepSizeTolerance?: number, successiveConvergenceTarget?: number, maxIterations?: number);
31
- /** Number of consecutive steps which passed convergence condition */
33
+ /** Number of consecutive steps which passed convergence condition. */
32
34
  protected _numAccepted: number;
33
- /** Target number of successive convergences */
35
+ /** Target number of successive convergences. */
34
36
  protected _successiveConvergenceTarget: number;
35
- /** convergence target (the implementation-specific currentStepSize is compared to this) */
37
+ /** Convergence target (the implementation-specific currentStepSize is compared to this). */
36
38
  protected _stepSizeTolerance: number;
37
- /** Max iterations allowed */
39
+ /** Max iterations allowed. */
38
40
  protected _maxIterations: number;
39
- /** number of iterations (incremented at each step) */
41
+ /** Number of iterations (incremented at each step). */
40
42
  numIterations: number;
41
43
  /**
42
44
  * Test if a step is converged.
43
- * * Convergence is accepted with enough (_successiveConvergenceTarget) small steps (according to _stepSizeTolerance) occur in succession.
44
- * @param delta step size as reported by currentStepSize
45
+ * * Convergence is accepted with enough (_successiveConvergenceTarget) small steps (according to _stepSizeTolerance)
46
+ * occur in succession.
47
+ * @param delta step size as reported by currentStepSize.
45
48
  */
46
49
  testConvergence(delta: number): boolean;
47
50
  /**
48
51
  * Run iterations, calling various methods from base and derived classes:
49
52
  * * computeStep -- typically evaluate derivatives and solve linear system.
50
- * * currentStepSize -- return numeric measure of the step just computed by computeStep
53
+ * * currentStepSize -- return numeric measure of the step just computed by computeStep.
51
54
  * * testConvergence -- test if the step from currentStepSize (along with recent steps) is converged.
52
- * * applyCurrentStep -- apply the step to the independent variables
55
+ * * applyCurrentStep -- apply the step to the independent variables.
53
56
  */
54
57
  runIterations(): boolean;
55
58
  }
56
- /** object to evaluate a newton function. The object must retain most-recent function and derivative
59
+ /**
60
+ * Object to evaluate a newton function. The object must retain most-recent function and derivative
57
61
  * values for immediate query.
58
62
  * @internal
59
63
  */
60
64
  export declare abstract class NewtonEvaluatorRtoRD {
61
- /** evaluate the function and its derivative at x. */
65
+ /** Evaluate the function and its derivative at x. */
62
66
  abstract evaluate(x: number): boolean;
63
- /** most recent function value */
67
+ /** Most recent function value, i.e., f(x_n). */
64
68
  currentF: number;
65
- /** most recent evaluated derivative */
69
+ /** Most recent evaluated derivative, i.e., f'(x_n). */
66
70
  currentdFdX: number;
67
71
  }
68
72
  /**
69
73
  * Newton iterator for use when both function and derivative can be evaluated.
74
+ * To solve `f(x) = 0`, the Newton iteration is `x_{n+1} = x_n - dx = x_n - f(x_n)/f'(x_n)`.
75
+ * To solve `f(x) = target` which is equivalent to solving `g(x) = f(x) - target = 0`, the Newton iteration is
76
+ * `x_{n+1} = x_n - dx = x_n - g(x_n)/g'(x_n) = x_n - (f(x_n)-target)/f'(x_n)`.
70
77
  * @internal
71
78
  */
72
79
  export declare class Newton1dUnbounded extends AbstractNewtonIterator {
73
80
  private _func;
81
+ /** Current step is dx. */
74
82
  private _currentStep;
83
+ /** Current X is x_n. */
75
84
  private _currentX;
85
+ /** The target */
76
86
  private _target;
77
87
  /**
78
- * Constructor for 1D newton iteration with approximate derivatives.
79
- * @param func function that returns both function and derivative.
88
+ * Constructor for 1D newton iteration with derivatives.
89
+ * @param func function that returns both function value and derivative.
80
90
  */
81
91
  constructor(func: NewtonEvaluatorRtoRD);
82
- /** Set the independent variable */
92
+ /** Set the independent variable, i.e., x_n. */
83
93
  setX(x: number): boolean;
84
- /** Get the independent variable */
94
+ /** Get the independent variable, i.e., x_n. */
85
95
  getX(): number;
86
- /** Set the target function value */
96
+ /** Set the target function value. */
87
97
  setTarget(y: number): void;
88
- /** move the current X by the just-computed step */
98
+ /** Move the current X by the just-computed step, i.e., `x_n - dx`. */
89
99
  applyCurrentStep(): boolean;
90
100
  /** Compute the univariate newton step. */
91
101
  computeStep(): boolean;
92
- /** Return the current step size as a relative number. */
102
+ /** Return the current step size as a relative number, i.e., `|dx / (1 + |x_n|)|`. */
93
103
  currentStepSize(): number;
94
104
  }
95
- /** object to evaluate a newton function (without derivative). The object must retain most-recent function value.
105
+ /**
106
+ * Object to evaluate a newton function (without derivative). The object must retain most-recent function value.
96
107
  * @internal
97
108
  */
98
109
  export declare abstract class NewtonEvaluatorRtoR {
99
110
  /** Evaluate function value into member currentF */
100
111
  abstract evaluate(x: number): boolean;
101
- /** Most recent function evaluation. */
112
+ /** Most recent function evaluation, i.e., f(x_n). */
102
113
  currentF: number;
103
114
  }
104
- /** Newton iteration for a univariate function, using approximate derivatives.
115
+ /**
116
+ * Newton iteration for a univariate function, using approximate derivatives.
117
+ * To approximate the derivatives we use a small step `h`, i.e., `f'(x_n) = (f(x_n + h) - f(x_n)) / h`.
118
+ * Therefore, to solve `f(x) = 0`, the iteration is
119
+ * `x_{n+1} = x_n - dx = x_n - f(x_n)/f'(x_n) = x_n - f(x_n) * h / (f(x_n + h) - f(x_n))`.
105
120
  * @internal
106
121
  */
107
122
  export declare class Newton1dUnboundedApproximateDerivative extends AbstractNewtonIterator {
108
123
  private _func;
124
+ /** Current step is dx. */
109
125
  private _currentStep;
126
+ /** Current X is x_n. */
110
127
  private _currentX;
111
- /** Step size for iteration.
128
+ /**
129
+ * Step size for approximate derivative for the iteration.
112
130
  * * Initialized to 1e-8, which is appropriate for iteration in fraction space.
113
131
  * * Should be larger for iteration with real distance as x.
114
132
  */
115
133
  derivativeH: number;
116
134
  /**
117
135
  * Constructor for 1D newton iteration with approximate derivatives.
118
- * @param func function that returns both function and derivative.
136
+ * @param func function that only returns function value (and not derivative).
119
137
  */
120
138
  constructor(func: NewtonEvaluatorRtoR);
121
- /** Set the x (independent, iterated) value */
139
+ /** Set the independent variable, i.e., x_n. */
122
140
  setX(x: number): boolean;
123
- /** Get the independent variable */
141
+ /** Get the independent variable, i.e., x_n. */
124
142
  getX(): number;
125
- /** move the current X by the just-computed step */
143
+ /** Move the current X by the just-computed step, i.e., `x_n - dx`. */
126
144
  applyCurrentStep(): boolean;
127
- /** Univariate newton step computed with APPROXIMATE derivative. */
145
+ /** Univariate newton step computed with approximate derivative. */
128
146
  computeStep(): boolean;
129
- /** Return the current step size as a relative number. */
147
+ /** Return the current step size as a relative number, i.e., `|dx / (1 + |x_n|)|`. */
130
148
  currentStepSize(): number;
131
149
  }
132
- /** object to evaluate a 2-parameter newton function (with derivatives!!).
150
+ /**
151
+ * Object to evaluate a 2-parameter newton function with derivatives.
133
152
  * @internal
134
153
  */
135
154
  export declare abstract class NewtonEvaluatorRRtoRRD {
136
- /** Iteration controller calls this to ask for evaluation of the function and its two partial derivatives.
155
+ /**
156
+ * Iteration controller calls this to ask for evaluation of the function and its two partial derivatives.
137
157
  * * The implementation returns true, it must set the currentF object.
138
158
  */
139
159
  abstract evaluate(x: number, y: number): boolean;
140
- /** most recent function evaluation as xy parts of the plane */
160
+ /**
161
+ * Most recent function evaluation as parts of the plane.
162
+ * * See doc of [[Newton2dUnboundedWithDerivative]] class for info on 2d newton method.
163
+ * * For current value (u,v) of the independent variable, and `F(u,v) := (x(u,v), y(u,v)), the returned plane has:
164
+ * * `origin.x` = x(u,v)
165
+ * * `origin.y` = y(u,v)
166
+ * * `vectorU.x` = dx/du
167
+ * * `vectorU.y` = dy/du
168
+ * * `vectorV.x` = dx/dv
169
+ * * `vectorV.y` = dy/dv
170
+ * * In other words, the plane stores the columns of the Jacobian matrix J of F: `vectorU` stores the partials
171
+ * of F with respect to u (the first column of J), and `vectorV` stores the partials of F with respect to v
172
+ * (the second column of J):
173
+ *
174
+ * `[vectorU.x vectorV.x]`
175
+ *
176
+ * `[vectorU.y vectorV.y]`
177
+ */
141
178
  currentF: Plane3dByOriginAndVectors;
142
179
  /**
143
- * constructor.
180
+ * Constructor.
144
181
  * * This creates a currentF object to (repeatedly) receive function and derivatives.
145
182
  */
146
183
  constructor();
147
184
  }
148
185
  /**
149
186
  * Implement evaluation steps for newton iteration in 2 dimensions, using caller supplied NewtonEvaluatorRRtoRRD object.
187
+ * * Suppose we want to find the roots of `F(u,v) := (x(u,v), y(u,v))`. Writing `X := (u,v)` and `F(X)` as column vectors,
188
+ * the 2D Newton's iteration to find a root of `F` is given by:
189
+ * `X_{n+1} = X_n - dX = X_n - JInv(X_n)F(X_n)`, where `JInv` is the inverse of the Jacobian matrix `J`, and `J` is
190
+ * defined as:
191
+ *
192
+ * `[dx/du dx/dv]`
193
+ *
194
+ * `[dy/du dy/dv]`
150
195
  * @internal
151
196
  */
152
197
  export declare class Newton2dUnboundedWithDerivative extends AbstractNewtonIterator {
153
198
  private _func;
199
+ /** Current step, or dX = (du, dv). */
154
200
  private _currentStep;
201
+ /** Current uv parameters, or X_n = (u_n, v_n). */
155
202
  private _currentUV;
203
+ /**
204
+ * Constructor for 2D newton iteration with derivatives.
205
+ * @param func function that returns both function value and derivative.
206
+ */
156
207
  constructor(func: NewtonEvaluatorRRtoRRD);
157
- /** Set the current uv coordinates for current iteration */
158
- setUV(x: number, y: number): boolean;
159
- /** Get the current u coordinate */
208
+ /** Set the current uv parameters, i.e., `X_n = (u_n, v_n)`. */
209
+ setUV(u: number, v: number): boolean;
210
+ /** Get the current u parameter of X_n, i.e., u_n. */
160
211
  getU(): number;
161
- /** Get the current v coordinate */
212
+ /** Get the current v parameter of X_n, i.e., v_n. */
162
213
  getV(): number;
163
- /** Move the currentUV coordinate by currentStep. */
214
+ /** Update the current uv parameter by currentStep, i.e., compute `X_{n+1} := X_n - dX = (u_n - du, v_n - dv)`. */
164
215
  applyCurrentStep(): boolean;
165
- /** Evaluate the functions and derivatives at this._currentUV
166
- * Invert the jacobian and compute the this._currentStep.
216
+ /**
217
+ * Evaluate the functions and derivatives at `X_n = (u_n, v_n)`, and solve the Jacobian matrix equation to
218
+ * compute `dX = (du, dv)`.
167
219
  */
168
220
  computeStep(): boolean;
169
221
  /**
170
- * Return the largest relative step of the x,y, components of the current step.
222
+ * Return the current relative step size, i.e., the larger absolute component of `dX / (1 + |X_n|)`
171
223
  */
172
224
  currentStepSize(): number;
173
225
  }
174
226
  /**
175
- * SimpleNewton has static methods for newton methods with evaluated functions presented as immediate arguments (not function object)
227
+ * SimpleNewton has static methods for newton methods with evaluated functions presented as immediate arguments
228
+ * (not function object).
176
229
  * @internal
177
230
  */
178
231
  export declare class SimpleNewton {
179
- /** Run a one-dimensional newton iteration with separate functions for function and derivative.
180
- * * completion is at 2 (TWO) successive passes at (absoluteTolerance + relTol * abs (x)), where relTol is chosen internally.
181
- * * absoluteTolerance is usually aggressively tight -- should come into play only for x near zero.
182
- * * The relTol is fluffy (for instance around 1e-11) but in properly converging cases the extra pass after first success
183
- * normally moves to full machine precision.
232
+ /**
233
+ * Run a one-dimensional newton iteration with separate functions for function and derivative.
234
+ * * Completion is at 2 (TWO) successive passes at `absoluteTolerance + relTol * abs(x)`, where relTol is
235
+ * chosen internally.
236
+ * * `absoluteTolerance` is usually aggressively tight -- should come into play only for x near zero.
237
+ * * The `relTol` is fluffy (for instance around 1e-11) but in properly converging cases the extra pass after
238
+ * first success normally moves to full machine precision.
184
239
  * * This is an open-loop newton -- it just runs, and returns undefined if anything bad happens.
185
240
  */
186
241
  static runNewton1D(x: number, func: (x: number) => number | undefined, derivative: (x: number) => number | undefined, absoluteTolerance?: number): number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Newton.d.ts","sourceRoot":"","sources":["../../../src/numerics/Newton.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AAKpF;;;;GAIG;AACH,8BAAsB,sBAAsB;IAC1C,wGAAwG;aACxF,WAAW,IAAI,OAAO;IACtC;;OAEG;aACa,eAAe,IAAI,MAAM;IACzC;;;OAGG;aACa,gBAAgB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO;IAC/D;;;;;;;;;;OAUG;IACH,SAAS,aACP,iBAAiB,GAAE,MAAgB,EACnC,2BAA2B,GAAE,MAAU,EACvC,aAAa,GAAE,MA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