|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoptics.Optics
optics.analysis.Moments
public class Moments
Class to implement two-dimensional moments, including methods to perform most calcualtions.
Field Summary |
---|
Fields inherited from class optics.Optics |
---|
DEFAULT_WAVELENGTH, errorStream, fmt, MICRONS, version |
Constructor Summary | |
---|---|
Moments(int order)
Form a Moments class to a specifed maximum
order. |
Method Summary | |
---|---|
void |
addPoint(double x,
double y,
double value)
Method to add a point with a specific value. |
void |
addPoint(Point2d pt,
double value)
Method to add a point with a specific value. |
Point2d |
centroid()
Method to calcule the centroid of the moment distribution |
double |
clusterRadius()
Method to calculate the cluster radius of the moments. |
static Moments |
fromRayPencil(RayPencil pencil,
double plane,
int order)
Static method to form the moments from where the rays in a RayPencil intersects a specified plane. |
static Moments |
fromRayPencil(RayPencil pencil,
OpticalPlane plane,
int order)
Satic method to for the moment of a of the rays in a RayPencil as they intersect a specified OpticalPlane . |
double |
getMoment(int m,
int n)
Method to get a moment value |
int |
getOrder()
Method to get the order |
Methods inherited from class optics.Optics |
---|
getDefaultWaveLength, getErrorStream, getFormatString, getName, getStaticName, getVersion, printError, setDefaultWaveLength, setErrorStream, setFormatString, setMicrons |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Moments(int order)
Moments
class to a specifed maximum
order.
order
- the maximum orderMethod Detail |
---|
public int getOrder()
int
the maximum order.public void addPoint(double x, double y, double value)
x
- the x location.y
- the y location.value
- the value of the point.public void addPoint(Point2d pt, double value)
pt
- the point.value
- the value of of the point.public double getMoment(int m, int n)
m
- The m valuen
- The n value
double
The moment valuepublic Point2d centroid()
public double clusterRadius()
double
the cluster radiuspublic static Moments fromRayPencil(RayPencil pencil, OpticalPlane plane, int order)
OpticalPlane
. The ray pencil is
NOT propagated to the plane.
pencil
- the RayPencil containing the raysplane
- the OpticalPlaneorder
- the morder of the expansion.public static Moments fromRayPencil(RayPencil pencil, double plane, int order)
pencil
- the Raypencil holding the rays.plane
- the z location of the plane.order
- the order the moments are calculate to
Moments
the Moments
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |