|
@@ -1,13 +1,15 @@
|
|
|
package com.lc.ibps.components.verification.model;
|
|
package com.lc.ibps.components.verification.model;
|
|
|
|
|
|
|
|
import com.lc.ibps.components.verification.regression.PolynomialRegression;
|
|
import com.lc.ibps.components.verification.regression.PolynomialRegression;
|
|
|
|
|
+import org.apache.commons.math3.stat.StatUtils;
|
|
|
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
|
|
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
|
|
|
|
|
|
|
|
-public class EP6AVO extends CalcVO{
|
|
|
|
|
|
|
+public class EP6ALinearRangeVO extends CalcVO{
|
|
|
|
|
|
|
|
private double[][] data;
|
|
private double[][] data;
|
|
|
|
|
|
|
|
private double[] means;
|
|
private double[] means;
|
|
|
|
|
+ private double mean;
|
|
|
private double[] standardDeviations;
|
|
private double[] standardDeviations;
|
|
|
|
|
|
|
|
private double high;
|
|
private double high;
|
|
@@ -20,7 +22,7 @@ public class EP6AVO extends CalcVO{
|
|
|
private PolynomialRegression pr2 = new PolynomialRegression();
|
|
private PolynomialRegression pr2 = new PolynomialRegression();
|
|
|
private PolynomialRegression pr3 = new PolynomialRegression();
|
|
private PolynomialRegression pr3 = new PolynomialRegression();
|
|
|
|
|
|
|
|
- public EP6AVO(double[][] data, double high,double low){
|
|
|
|
|
|
|
+ public EP6ALinearRangeVO(double[][] data, double high, double low){
|
|
|
this.data = data;
|
|
this.data = data;
|
|
|
this.high = high;
|
|
this.high = high;
|
|
|
this.low = low;
|
|
this.low = low;
|
|
@@ -40,6 +42,7 @@ public class EP6AVO extends CalcVO{
|
|
|
standardDeviations[i] = stat.getStandardDeviation();
|
|
standardDeviations[i] = stat.getStandardDeviation();
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ mean = StatUtils.mean(means);
|
|
|
|
|
|
|
|
pr1.addData(targetValues, means, repeatNum,1);
|
|
pr1.addData(targetValues, means, repeatNum,1);
|
|
|
pr2.addData(targetValues, means, repeatNum,2);
|
|
pr2.addData(targetValues, means, repeatNum,2);
|
|
@@ -47,6 +50,9 @@ public class EP6AVO extends CalcVO{
|
|
|
double d = getT(pr1.getDfDependent(),0.05);
|
|
double d = getT(pr1.getDfDependent(),0.05);
|
|
|
double d2 = getT(pr2.getDfDependent(),0.05);
|
|
double d2 = getT(pr2.getDfDependent(),0.05);
|
|
|
double d3 = getT(pr3.getDfDependent(),0.05);
|
|
double d3 = getT(pr3.getDfDependent(),0.05);
|
|
|
|
|
+ double s1 = pr1.getStdError() / mean;
|
|
|
|
|
+ double s2 = pr2.getStdError() /mean;
|
|
|
|
|
+ double s3 = pr3.getStdError() /mean;
|
|
|
pr1.getParameters();
|
|
pr1.getParameters();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -61,7 +67,7 @@ public class EP6AVO extends CalcVO{
|
|
|
|
|
|
|
|
public static void main(String[] args){
|
|
public static void main(String[] args){
|
|
|
double[][] data = {{-0.01,-0.01},{5.00,4.99},{10.18,10.05},{14.65,14.65},{19.57,19.65},{24.02,24.09}};
|
|
double[][] data = {{-0.01,-0.01},{5.00,4.99},{10.18,10.05},{14.65,14.65},{19.57,19.65},{24.02,24.09}};
|
|
|
- EP6AVO ep6 = new EP6AVO(data,24.56,0);
|
|
|
|
|
|
|
+ EP6ALinearRangeVO ep6 = new EP6ALinearRangeVO(data,24.56,0);
|
|
|
System.out.println(ep6);
|
|
System.out.println(ep6);
|
|
|
// ep6.getT()
|
|
// ep6.getT()
|
|
|
|
|
|