Public Member Functions | |
| PointList () | |
| Constructor. | |
| void | addToPath (java.awt.geom.Path2D.Double path, java.util.concurrent.atomic.AtomicBoolean restart) |
| Add points to a Path. | |
Static Public Member Functions | |
| static void | main (String[] args) |
| Test code. | |
Private Member Functions | |
| double | gradient (final int j, final double[] derivative2) |
| Used exclusively by addToPath(). | |
| double[][] | controlPoints (java.util.concurrent.atomic.AtomicBoolean restart) |
| Used internally to get the control points for a set of cubic splines. | |
Static Private Member Functions | |
| static void | LU_decompose (double[][] A, java.util.concurrent.atomic.AtomicBoolean restart) |
| In place LU decomposition of a matrix A. | |
| static double[] | LU_solve (final double[][] LU, final double[] b, java.util.concurrent.atomic.AtomicBoolean restart) |
| Solve for LUx = b. | |
Private Attributes | |
| final double | eps = 1e-10 |
| A number close to zero. | |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
Classes | |
| class | MyView |
| jscicalc.graph.PointList.PointList | ( | ) |
| void jscicalc.graph.PointList.addToPath | ( | java.awt.geom.Path2D.Double | path, | |
| java.util.concurrent.atomic.AtomicBoolean | restart | |||
| ) |
Add points to a Path.
Actually constructs a Bézier cubic spline.
| restart | If this is true, return immediately | |
| path | The path to add some points to |
References jscicalc.graph.PointList.controlPoints().
Referenced by jscicalc.graph.PointList.main(), and jscicalc.graph.Locus.run().
| double jscicalc.graph.PointList.gradient | ( | final int | j, | |
| final double[] | derivative2 | |||
| ) | [private] |
Used exclusively by addToPath().
| j | The point at which to evaluate the gradient | |
| derivative2 | An array of second derivatives |
| double [][] jscicalc.graph.PointList.controlPoints | ( | java.util.concurrent.atomic.AtomicBoolean | restart | ) | [private] |
Used internally to get the control points for a set of cubic splines.
These are in the order x0+, x1-, x1+, x2-, ..., xn- and there are 2n - 1 of them where n is the number of points we have. The first index tells us if we are dealing with the x coordinate (0) or the y (1).
| restart | If this is true, return immediately |
References jscicalc.graph.PointList.LU_decompose(), and jscicalc.graph.PointList.LU_solve().
Referenced by jscicalc.graph.PointList.addToPath().
| static void jscicalc.graph.PointList.LU_decompose | ( | double | A[][], | |
| java.util.concurrent.atomic.AtomicBoolean | restart | |||
| ) | [static, private] |
In place LU decomposition of a matrix A.
This should only be used internally. It is not suitable for general LU decomposition.
| restart | If this is true, return immediately | |
| A | A square (not checked) matrix |
Referenced by jscicalc.graph.PointList.controlPoints().
| static double [] jscicalc.graph.PointList.LU_solve | ( | final double | LU[][], | |
| final double[] | b, | |||
| java.util.concurrent.atomic.AtomicBoolean | restart | |||
| ) | [static, private] |
Solve for LUx = b.
Checks nothing. Only use internally.
| LU | An LU-decomposed matrix | |
| b | The vector of doubles | |
| restart | If this is true, return immediately |
Referenced by jscicalc.graph.PointList.controlPoints().
| static void jscicalc.graph.PointList.main | ( | String[] | args | ) | [static] |
Test code.
| args | A dummy argument |
References jscicalc.graph.PointList.addToPath(), and jscicalc.graph.PointList.PointList().
final double jscicalc.graph.PointList.eps = 1e-10 [private] |
A number close to zero.
final long jscicalc.graph.PointList.serialVersionUID = 1L [static, private] |
1.5.5