|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AFLPcore.Operation | +--AFLPcore.CutoffFunction | +--AFLPcore.LinearCutoff
This cutoff function represents a horizontal line. It is set at a specific value, determined by the first (and only) option set. This means that the cutoff hieght is independent of the size. The cutoff functions are used to help score bins and can also be used by peak locating algorithms.
CutoffFunction
Fields inherited from class AFLPcore.Operation |
descript, helpFile, name, options |
Constructor Summary | |
LinearCutoff()
Creates a new linear function with the value specified in value. |
Method Summary | |
double |
getCutoff(double position)
Gives the cutoff point for this function. |
java.lang.String |
getDescription()
Gives a brief description of the linear filter. |
java.lang.String |
getHelpFile()
Gives help for the linear cutoff. |
java.lang.String |
getName()
Gives the name of this linear function. |
Option[] |
getOptions()
Returns the options/parameters for this Cutoff function. |
void |
read(java.io.DataInputStream in)
Reads in the properties of this class from the specified input stream. |
void |
setOptions(Option[] opts)
Set the value for the cutoff. |
void |
write(java.io.DataOutputStream out)
Writes all of the information this class needs to store in order to be recreated. |
Methods inherited from class AFLPcore.CutoffFunction |
clone |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LinearCutoff()
value
- the number to return as the cutoffMethod Detail |
public java.lang.String getName()
getName
in class Operation
public java.lang.String getDescription()
getDescription
in class Operation
public java.lang.String getHelpFile()
getHelpFile
in class Operation
null
if this file does not exist.public Option[] getOptions()
getOptions
in class Operation
public void setOptions(Option[] opts)
setOptions
in class Operation
the
- option with the value for the cutoff.MissingParameterError
- the value was not provided in
the opts
parameter.public double getCutoff(double position)
getCutoff
in class CutoffFunction
position
- this parameter is ignored in this caseMissingParameterError
- occurs if the value for this cutoff
function has not been set.public void write(java.io.DataOutputStream out) throws java.io.IOException
read
can recreate the essential properties of this
class.write
in class CutoffFunction
out
- the destination to write the data to.java.io.IOException
- occurs when a problem is encountered when
writing to the stream.public void read(java.io.DataInputStream in) throws java.io.IOException
write
. This
will retrieve this classes state from the input stream. All of the
current data in this class will be replaced by the data from the
stream.read
in class CutoffFunction
in
- the input stream with the data for the class.java.io.IOException
- occurs when a problem is encountered when
writing to the stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |