Package uk.ac.starlink.ttools.task
Interface PixSampler.StatMode
-
- Enclosing class:
- PixSampler
public static interface PixSampler.StatModeDefines how statistics are to be acquired from a pixel or set of pixels.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetResult(java.lang.Object[] values)Returns the result of some statistical operation on a set of supplied values.uk.ac.starlink.table.ColumnInfogetResultInfo(uk.ac.starlink.table.ColumnInfo baseInfo)Provides a column metadata object describing the output of this mode, given the metadata of the input.booleanisPoint()Indicates whether this operation is point-like.
-
-
-
Method Detail
-
getResultInfo
uk.ac.starlink.table.ColumnInfo getResultInfo(uk.ac.starlink.table.ColumnInfo baseInfo)
Provides a column metadata object describing the output of this mode, given the metadata of the input.- Parameters:
baseInfo- input data metadata- Returns:
- output data metadata
-
getResult
java.lang.Object getResult(java.lang.Object[] values)
Returns the result of some statistical operation on a set of supplied values.- Parameters:
values- array of input values- Returns:
- result of statistical operation
-
isPoint
boolean isPoint()
Indicates whether this operation is point-like. If so, only a single value should be supplied to thegetResult(java.lang.Object[])method.- Returns:
- true iff this operation is point-like
-
-