本文整理汇总了Java中org.jfree.data.statistics.Regression.getPowerRegression方法的典型用法代码示例。如果您正苦于以下问题:Java Regression.getPowerRegression方法的具体用法?Java Regression.getPowerRegression怎么用?Java Regression.getPowerRegression使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jfree.data.statistics.Regression
的用法示例。
在下文中一共展示了Regression.getPowerRegression方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testPowerRegression1b
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 1 AFTER converting it to
* an XYSeries.
*/
public void testPowerRegression1b() {
final double[][] data = createSampleData1();
final XYSeries series = new XYSeries("Test");
for (int i = 0; i < 11; i++) {
series.add(data[i][0], data[i][1]);
}
final XYDataset ds = new XYSeriesCollection(series);
final double[] result = Regression.getPowerRegression(ds, 0);
assertEquals(0.91045813, result[0], 0.0000001);
assertEquals(0.88918346, result[1], 0.0000001);
}
示例2: testPowerRegression2b
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 2 AFTER converting it to
* an XYSeries.
*/
public void testPowerRegression2b() {
final double[][] data = createSampleData2();
final XYSeries series = new XYSeries("Test");
for (int i = 0; i < 10; i++) {
series.add(data[i][0], data[i][1]);
}
final XYDataset ds = new XYSeriesCollection(series);
final double[] result = Regression.getPowerRegression(ds, 0);
assertEquals(106.1241681, result[0], 0.0000001);
assertEquals(-0.8466615, result[1], 0.0000001);
}
示例3: testPowerRegression1b
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 1 AFTER
* converting it to an XYSeries.
*/
public void testPowerRegression1b() {
double[][] data = createSampleData1();
XYSeries series = new XYSeries("Test");
for (int i = 0; i < 11; i++) {
series.add(data[i][0], data[i][1]);
}
XYDataset ds = new XYSeriesCollection(series);
double[] result = Regression.getPowerRegression(ds, 0);
assertEquals(0.91045813, result[0], 0.0000001);
assertEquals(0.88918346, result[1], 0.0000001);
}
示例4: testPowerRegression2b
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 2 AFTER
* converting it to an XYSeries.
*/
public void testPowerRegression2b() {
double[][] data = createSampleData2();
XYSeries series = new XYSeries("Test");
for (int i = 0; i < 10; i++) {
series.add(data[i][0], data[i][1]);
}
XYDataset ds = new XYSeriesCollection(series);
double[] result = Regression.getPowerRegression(ds, 0);
assertEquals(106.1241681, result[0], 0.0000001);
assertEquals(-0.8466615, result[1], 0.0000001);
}
示例5: testPowerRegression1b
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 1 AFTER
* converting it to an XYSeries.
*/
public void testPowerRegression1b() {
double[][] data = createSampleData1();
XYSeries series = new XYSeries("Test");
for (int i = 0; i < 11; i++) {
series.add(data[i][0], data[i][1]);
}
XYDataset ds = new XYSeriesCollection(series);
double[] result = Regression.getPowerRegression(ds, 0);
assertEquals(0.91045813, result[0], 0.0000001);
assertEquals(0.88918346, result[1], 0.0000001);
}
示例6: testPowerRegression2b
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 2 AFTER
* converting it to an XYSeries.
*/
public void testPowerRegression2b() {
double[][] data = createSampleData2();
XYSeries series = new XYSeries("Test");
for (int i = 0; i < 10; i++) {
series.add(data[i][0], data[i][1]);
}
XYDataset ds = new XYSeriesCollection(series);
double[] result = Regression.getPowerRegression(ds, 0);
assertEquals(106.1241681, result[0], 0.0000001);
assertEquals(-0.8466615, result[1], 0.0000001);
}
示例7: testPowerRegression1a
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 1.
*/
public void testPowerRegression1a() {
final double[][] data = createSampleData1();
final double[] result = Regression.getPowerRegression(data);
assertEquals(0.91045813, result[0], 0.0000001);
assertEquals(0.88918346, result[1], 0.0000001);
}
示例8: testPowerRegression2a
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 2.
*/
public void testPowerRegression2a() {
final double[][] data = createSampleData2();
final double[] result = Regression.getPowerRegression(data);
assertEquals(106.1241681, result[0], 0.0000001);
assertEquals(-0.8466615, result[1], 0.0000001);
}
示例9: testPowerRegression1a
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 1.
*/
public void testPowerRegression1a() {
double[][] data = createSampleData1();
double[] result = Regression.getPowerRegression(data);
assertEquals(0.91045813, result[0], 0.0000001);
assertEquals(0.88918346, result[1], 0.0000001);
}
示例10: testPowerRegression2a
import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
* Checks the results of a power regression on sample dataset 2.
*/
public void testPowerRegression2a() {
double[][] data = createSampleData2();
double[] result = Regression.getPowerRegression(data);
assertEquals(106.1241681, result[0], 0.0000001);
assertEquals(-0.8466615, result[1], 0.0000001);
}