Linear#

class lsst.analysis.tools.actions.plot.Linear(*args, **kw)#

Bases: VectorAction, TensorAction

Transform the input vector/tensor using the linear stretch.

Parameters#

dataVector

A vector or a tensor containing the data to be transformed using the linear stretch.

Returns#

A vector or tensor of the same size as the input, transformed using the linear stretch.

Attributes Summary

intercept

The offset of the linear stretch.

slope

The slope of the linear stretch.

Methods Summary

__call__(data, **kwargs)

Call self as a function.

Attributes Documentation

intercept#

The offset of the linear stretch. Default: 0. (float, default 0.0)

slope#

The slope of the linear stretch. Default: 1. (float, default 1.0)

Methods Documentation

__call__(data: ndarray[tuple[Any, ...], dtype[_ScalarT]] | Tensor, **kwargs) ndarray[tuple[Any, ...], dtype[_ScalarT]] | Tensor#

Call self as a function.