public class DataSet
extends java.lang.Object
Constructor and Description |
---|
DataSet(double refParam,
double[] x,
double[] y) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel() |
java.lang.String |
getLabelx() |
java.lang.String |
getLabely() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinX() |
double |
getMinY() |
int |
getNoPoints() |
double |
getRefParam() |
double[] |
getX() |
double[] |
getY() |
double |
interpolateByX(double key)
Find Y corresponding to X by linear interpolation
|
double |
interpolateByY(double key)
Find X corresponding to Y by linear interpolation
|
boolean |
isExtrapolated() |
void |
print()
Print data set to stdout
|
void |
setExtrapolation(boolean flag) |
void |
setLabel(java.lang.String label) |
void |
setLabelx(java.lang.String labelx) |
void |
setLabely(java.lang.String labely) |
void |
setRefParam(double refParam) |
public void setExtrapolation(boolean flag)
public boolean isExtrapolated()
public double interpolateByX(double key)
key
- value to be searchedpublic double interpolateByY(double key)
key
- value to be searchedpublic void print()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.lang.String getLabelx()
public java.lang.String getLabely()
public double getRefParam()
public void setRefParam(double refParam)
public void setLabelx(java.lang.String labelx)
public void setLabely(java.lang.String labely)
public int getNoPoints()
public double[] getX()
public double[] getY()
public double getMaxX()
public double getMinX()
public double getMaxY()
public double getMinY()