public class Polynom
extends java.lang.Object
Title: Polynom class
Description:
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
static int |
maxDegree |
double[] |
polyCoeff |
Constructor and Description |
---|
Polynom() |
Modifier and Type | Method and Description |
---|---|
int |
getPolyDegree()
The number of degrees a polynomy will have.
|
double |
polyEval(double x)
Evaluate function by using polyDegree polynomial with polyCoeff at
value x.
|
void |
polyFit(int numPoints,
double[] x,
double[] y)
Calculate the polynomial fit
|
void |
setPolyDegree(int value)
Sets the number of degrees a polynomy will have.
|
public int getPolyDegree()
public void setPolyDegree(int value)
value
- intpublic void polyFit(int numPoints, double[] x, double[] y)
numPoints
- int is the number of points to fitx
- double[] x valuesy
- double[] y valuespublic double polyEval(double x)
x
- double