jscicalc.graph.PointList Class Reference

This represents a list of Point objects in a View. More...

List of all members.

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


Detailed Description

This represents a list of Point objects in a View.

Author:
J. D. Lamb
Version:
Revision
1.2

Constructor & Destructor Documentation

jscicalc.graph.PointList.PointList (  ) 

Constructor.

Does nothing.

Referenced by jscicalc.graph.PointList.main().


Member Function Documentation

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.

Parameters:
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().

Parameters:
j The point at which to evaluate the gradient
derivative2 An array of second derivatives
Returns:
A gradient

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).

Parameters:
restart If this is true, return immediately
Returns:
A set of control points

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.

Parameters:
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.

Parameters:
LU An LU-decomposed matrix
b The vector of doubles
restart If this is true, return immediately
Returns:
A solution vector

Referenced by jscicalc.graph.PointList.controlPoints().

static void jscicalc.graph.PointList.main ( String[]  args  )  [static]

Test code.

Parameters:
args A dummy argument

References jscicalc.graph.PointList.addToPath(), and jscicalc.graph.PointList.PointList().


Member Data Documentation

final double jscicalc.graph.PointList.eps = 1e-10 [private]

A number close to zero.

final long jscicalc.graph.PointList.serialVersionUID = 1L [static, private]


The documentation for this class was generated from the following file:

Generated on Sun Jun 1 08:58:12 2008 for Java Scientific Calculator by  doxygen 1.5.5