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
- lowerBinLimit#
Percentile of data to start the bining at (
float, default5.0)
- nBins#
Number of bins to use for running median (
int, default50)
- upperBinLimit#
Percentile of data to end the binning at (
float, default95.0)
- xsVectorKey#
Key of Vector that gives the x location of the points. (
str)
- ysVectorKey#
Key of the Vector to compute the statistic from. (
str)
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 :
KeyedDataReturns#
- result
Scalar The gradient of the running median
- result
- getInputSchema() Iterable[tuple[str, type[ndarray[tuple[Any, ...], dtype[_ScalarT]]] | type[Scalar] | type[HealSparseMap] | type[Tensor] | type[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