public class FittingUtil extends Object
| 构造器 | 说明 |
|---|---|
FittingUtil() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Object[] |
expFit(Array x,
Array y) |
Exponent fitting
|
static Object[] |
polyFit(Array x,
Array y,
int degree) |
Polynomail fitting
|
static Object[] |
powerFit(Array x,
Array y) |
Power fitting
|
static double |
predict(double x,
OLSTrendLine tl) |
Predict a value
|
static Array |
predict(Array x,
OLSTrendLine tl) |
Predict a value
|
public static Object[] powerFit(Array x, Array y)
x - X arrayy - Y arraypublic static Object[] expFit(Array x, Array y)
x - X arrayy - Y arraypublic static Object[] polyFit(Array x, Array y, int degree)
x - X arrayy - Y arraydegree - Degreepublic static double predict(double x,
OLSTrendLine tl)
x - X valuetl - The trend line objectpublic static Array predict(Array x, OLSTrendLine tl)
x - X valuetl - The trend line objectCopyright © 2019. All rights reserved.