private static class PSquarePercentile.Marker
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private double |
desiredMarkerIncrement
Desired marker increment.
|
private double |
desiredMarkerPosition
Desired marker position.
|
private int |
index
The marker index which is just a serial number for the marker in the
marker array of 5+1.
|
private double |
intMarkerPosition
The integral marker position.
|
private UnivariateInterpolator |
linear
Linear interpolator which is not serializable
|
private double |
markerHeight
Marker height or the quantile.
|
private PSquarePercentile.Marker |
next
Next and previous markers for easy linked navigation in loops.
|
private UnivariateInterpolator |
nonLinear
Nonlinear interpolator
|
private PSquarePercentile.Marker |
previous
The previous marker links
|
private static long |
serialVersionUID
Serial Version ID
|
Modifier | Constructor and Description |
---|---|
private |
Marker()
Default constructor
|
private |
Marker(double heightOfMarker,
double makerPositionDesired,
double markerPositionIncrement,
double markerPositionNumber)
Constructor of the marker with parameters
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone this instance.
|
private double |
difference()
Difference between desired and actual position
|
boolean |
equals(java.lang.Object o)
This equals method checks for marker attributes and
as well checks if navigation pointers (next and previous) are the same
between this and passed in object
|
private double |
estimate()
Estimate the quantile for the current marker.
|
int |
hashCode() |
private void |
incrementPosition(int d)
Increment Position by d.
|
private PSquarePercentile.Marker |
index(int indexOfMarker)
Sets the index of the marker.
|
private boolean |
isEstimateBad(double[] y,
double yD)
Check if parabolic/nonlinear estimate is bad by checking if the
ordinate found is beyond the y[0] and y[2].
|
private PSquarePercentile.Marker |
next(PSquarePercentile.Marker nextMarker)
Sets the next marker.
|
private PSquarePercentile.Marker |
previous(PSquarePercentile.Marker previousMarker)
Sets the previous marker.
|
private void |
readObject(java.io.ObjectInputStream anInstream)
Read Object to deserialize.
|
java.lang.String |
toString() |
private void |
updateDesiredPosition()
Update desired Position with increment.
|
private static final long serialVersionUID
private int index
private double intMarkerPosition
private double desiredMarkerPosition
private double markerHeight
private double desiredMarkerIncrement
private transient PSquarePercentile.Marker next
private transient PSquarePercentile.Marker previous
private final UnivariateInterpolator nonLinear
private transient UnivariateInterpolator linear
private Marker()
private Marker(double heightOfMarker, double makerPositionDesired, double markerPositionIncrement, double markerPositionNumber)
heightOfMarker
- represent the quantile valuemakerPositionDesired
- represent the desired marker positionmarkerPositionIncrement
- represent increments for positionmarkerPositionNumber
- represent the position number of markerprivate PSquarePercentile.Marker previous(PSquarePercentile.Marker previousMarker)
previousMarker
- the previous marker to the current marker in
the array of markersprivate PSquarePercentile.Marker next(PSquarePercentile.Marker nextMarker)
nextMarker
- the next marker to the current marker in the array
of markersprivate PSquarePercentile.Marker index(int indexOfMarker)
indexOfMarker
- the array index of the marker in marker arrayprivate void updateDesiredPosition()
private void incrementPosition(int d)
d
- a delta value to incrementprivate double difference()
private double estimate()
private boolean isEstimateBad(double[] y, double yD)
y
- the array to get the boundsyD
- the estimatepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Other objectpublic int hashCode()
hashCode
in class java.lang.Object
private void readObject(java.io.ObjectInputStream anInstream) throws java.lang.ClassNotFoundException, java.io.IOException
anInstream
- Stream Object datajava.io.IOException
- thrown for IO Errorsjava.lang.ClassNotFoundException
- thrown for class not being foundpublic java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object