MedianGradientAction¶
- class lsst.analysis.tools.actions.scalar.MedianGradientAction(*args, **kw)¶
Bases:
ScalarActionCalculate the gradient of a running median
Attributes Summary
Percentile of data to start the bining at (
float, default5.0)Number of bins to use for running median (
int, default50)Percentile of data to end the binning at (
float, default95.0)Key of Vector that gives the x location of the points.
Key of the Vector to compute the statistic from.
Methods Summary
__call__(data, **kwargs)Return the gradient of the running median.
Return the schema an
AnalysisActionexpects to be present in the arguments supplied to the __call__ method.Attributes Documentation
Methods Documentation
- __call__(data: MutableMapping[str, ndarray[tuple[Any, ...], dtype[_ScalarT]] | Scalar | HealSparseMap | Tensor | Mapping], **kwargs) Scalar¶
Return the gradient of the running median.
- Parameters:
- data
KeyedData
- data
- Returns:
- result
Scalar The gradient of the running median
- result
- getInputSchema() Iterable[tuple[str, type[numpy.ndarray[tuple[Any, ...], numpy.dtype[_ScalarT]]] | type[lsst.analysis.tools.interfaces._interfaces.Scalar] | type[healsparse.healSparseMap.HealSparseMap] | type[lsst.analysis.tools.interfaces._interfaces.Tensor] | type[collections.abc.Mapping]]]¶
Return the schema an
AnalysisActionexpects to be present in the arguments supplied to the __call__ method.- Returns:
- result
KeyedDataSchema The schema this action requires to be present when calling this action, keys are unformatted.
- result