Package ubic.basecode.datafilter
Class AbstractLevelFilter<R,C>
java.lang.Object
ubic.basecode.datafilter.AbstractFilter<DoubleMatrix<R,C>,R,C,Double>
ubic.basecode.datafilter.AbstractLevelFilter<R,C>
- All Implemented Interfaces:
Filter<DoubleMatrix<R,
C>, R, C, Double>
- Direct Known Subclasses:
ItemLevelFilter
,RowLevelFilter
Abstract class representing a filter that removes things from DoubleMatrixNamed matrices based on the values
themselves.
- Author:
- pavlidis
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
protected double
protected boolean
protected boolean
Fields inherited from class ubic.basecode.datafilter.AbstractFilter
log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setHighCut
(double h) Set the high threshold for removal.void
setHighCut
(double highCut, boolean isFraction) void
setLowCut
(double lowCut) Set the low threshold for removal.void
setLowCut
(double lowCut, boolean isFraction) void
setUseAsFraction
(boolean setting) Set the filter to interpret the low and high cuts as fractions; that is, if true, lowcut 0.1 means remove 0.1 of the rows with the lowest values.void
setUseHighCutAsFraction
(boolean setting) void
setUseLowCutAsFraction
(boolean setting) Methods inherited from class ubic.basecode.datafilter.AbstractFilter
getOutputMatrix
-
Field Details
-
highCut
protected double highCut -
lowCut
protected double lowCut -
useHighAsFraction
protected boolean useHighAsFraction -
useLowAsFraction
protected boolean useLowAsFraction
-
-
Constructor Details
-
AbstractLevelFilter
public AbstractLevelFilter()
-
-
Method Details
-
setHighCut
public void setHighCut(double h) Set the high threshold for removal. If not set, no filtering will occur.- Parameters:
h
- the threshold
-
setHighCut
public void setHighCut(double highCut, boolean isFraction) - Parameters:
highCut
-isFraction
-
-
setLowCut
public void setLowCut(double lowCut) Set the low threshold for removal.- Parameters:
lowCut
- the threshold
-
setLowCut
public void setLowCut(double lowCut, boolean isFraction) - Parameters:
lowCut
-isFraction
-
-
setUseAsFraction
public void setUseAsFraction(boolean setting) Set the filter to interpret the low and high cuts as fractions; that is, if true, lowcut 0.1 means remove 0.1 of the rows with the lowest values. Otherwise the cuts are interpeted as actual values. Default = false.- Parameters:
setting
- boolean
-
setUseHighCutAsFraction
public void setUseHighCutAsFraction(boolean setting) - Parameters:
setting
-
-
setUseLowCutAsFraction
public void setUseLowCutAsFraction(boolean setting) - Parameters:
setting
-
-