|
||||||||
| 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 | |
|---|---|
double |
actual_error(java.util.Vector<MyPoint> y_estimate,
java.util.Vector<MyPoint> iset)
Compute the actual error from the given data points and the estimated values. |
void |
autocorrelate(java.util.Vector<MyPoint> v,
double[] autoCoeff_co)
Actaully computes the autocorrelation coefficients |
void |
autoCorrelation()
Computes the autocorrelation coeffient from the data sets |
double |
calculate_pfc(double[] auto_coeff,
double[] pfc,
double[] rc_reg)
Actually calculate the PF coefficient and the Residual Error Energy, and Reflection Coefficients |
boolean |
checkdata_PF(java.util.Vector<MyPoint> pf)
Validates the class entered by user for Partical Filtering |
void |
display_result(double[] auto_coeff,
double[] refCoef,
double[] final_pfc,
double est_err,
double act_err,
int index,
int length)
Display the results in the process box |
void |
estimate(java.util.Vector<MyPoint> iset,
java.util.Vector<MyPoint> y_estimate,
double avg,
double[] final_pfc)
Estimates the amplitude based on the PF coeficients. |
void |
final_estimate()
Calculates the estimated points for the data inputs |
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 |
pfcCoefficient()
Computes the Particle Filtering coefficient from the data sets |
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 |
void |
step2_display()
Displays PF order, Error Energy and Reflection Coefficients |
| 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 autoCorrelation()
public void autocorrelate(java.util.Vector<MyPoint> v,
double[] autoCoeff_co)
v - Vector of datapointsautoCoeff_co - array of autocorrelation coefficientspublic void pfcCoefficient()
public double calculate_pfc(double[] auto_coeff,
double[] pfc,
double[] rc_reg)
auto_coeff - array of auto correlation coefficientspfc - array of particle filtering coefficientsrc_reg - array of reflection coefficients
public void final_estimate()
public void estimate(java.util.Vector<MyPoint> iset,
java.util.Vector<MyPoint> y_estimate,
double avg,
double[] final_pfc)
iset - interpolated data pointsy_estimate - predicted final signal data pointsavg - mean of the original datapoints givenfinal_pfc - array of final particle filtering coefficients
public double actual_error(java.util.Vector<MyPoint> y_estimate,
java.util.Vector<MyPoint> iset)
y_estimate - datapoints of the estimated datapointsiset - original datapoints
public void step2_display()
public void display_result(double[] auto_coeff,
double[] refCoef,
double[] final_pfc,
double est_err,
double act_err,
int index,
int length)
auto_coeff - Auto Correlation CoefficientsrefCoef - Refelction Coefficientfinal_pfc - Particle Filering Coefficientsest_err - Estimated Erroract_err - Actual Errorlength - Length of the data points
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||