|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectAlgorithm
AlgorithmPF
public class AlgorithmPF
| Constructor Summary | |
|---|---|
AlgorithmPF()
|
|
| Method Summary | |
|---|---|
boolean |
checkdata_PF(java.util.Vector<MyPoint> pf)
Validates the class entered by user for Partical Filtering |
void |
drawGaussian(double mean_x_a,
double mean_y_a,
int set_index_a)
Draws Gaussian points around each data point |
boolean |
initialize()
Implements the initialize() method in the base class. |
void |
interpol(java.util.Vector<MyPoint> v,
java.util.Vector<MyPoint> iset)
Calculates the interpolated points for the data inputs |
double |
mean(java.util.Vector<MyPoint> v,
java.util.Vector<MyPoint> mv)
Calculates the mean and the zero-mean data points |
void |
run()
Implementation of the run function from the Runnable interface. |
void |
spline(double[] x,
double[] y,
double[] y2,
int size)
Actually interpolates the points |
void |
splint(MyPoint u1,
MyPoint u2,
MyPoint r,
double[] y2,
int i)
Interpolates for a point between the two known points using Cubic Interpolation |
java.util.Vector<MyPoint> |
transformPCA(int point_index_a,
int set_index_a)
Transforms a given set of points to a new space using the class independent principal component analysis algorithm |
| Methods inherited from class Algorithm |
|---|
computeMeans, disableControl, enableControl, nextStep, prevStep, scaleToFitData, setDataPoints, setOutputPanel, setProcessBox |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlgorithmPF()
| Method Detail |
|---|
public boolean initialize()
initialize in class Algorithmpublic boolean checkdata_PF(java.util.Vector<MyPoint> pf)
pf -
public void run()
run in interface java.lang.Runnablerun in class Algorithm
public void interpol(java.util.Vector<MyPoint> v,
java.util.Vector<MyPoint> iset)
v - input data pointsiset - interpolated data points
public void spline(double[] x,
double[] y,
double[] y2,
int size)
x - array containing the x coordinates of datapointsy - array containing the y coordinates of datapointsy2 - array containing the interpolated y coordinatessize - the size of the array to be interpolated
public void splint(MyPoint u1,
MyPoint u2,
MyPoint r,
double[] y2,
int i)
u1 - start point for the interpolationu2 - end point for the interpolationr - returning point, basically the interpolated pointy2 - array used for reassigning of ri - the sample number
public double mean(java.util.Vector<MyPoint> v,
java.util.Vector<MyPoint> mv)
v - orginal datapointsmv - zero mean datapoints
public void drawGaussian(double mean_x_a,
double mean_y_a,
int set_index_a)
mean_x_a - double x value of mean pointmean_y_a - double y value of mean pointset_index_a - which data set of points to draw gaussian
public java.util.Vector<MyPoint> transformPCA(int point_index_a,
int set_index_a)
point_index_a - the index in the data vector to useset_index_a - the set to use
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||