FracThreshold¶
- class lsst.analysis.tools.actions.scalar.FracThreshold(*args, **kw)¶
Bases:
ScalarFromVectorActionCompute the fraction of a distribution above or below a threshold.
The operator is specified as a string, for example, “lt”, “le”, “ge”, “gt” for the mathematical operations <, <=, >=, >. To compute the fraction of elements with values less than a given threshold, use op=”le”.
Attributes Summary
Operator name string.
Express result as percentage (
bool, defaultFalse)Calculate threshold relative to the median? (
bool, defaultFalse)Threshold to apply.
Key of Vector to compute statistic from.
Methods Summary
__call__(data, **kwargs)Compute a scalar value from keyed data.
Attributes Documentation
- op¶
Operator name string. (
str, defaultNone)Allowed values:
'lt'less than threshold
'le'less than or equal to threshold
'ge'greater than or equal to threshold
'gt'greater than threshold
'None'Field is optional
Methods Documentation