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[int, ...], dtype[_ScalarType_co]] | Tensor, **kwargs) ndarray[tuple[int, ...], dtype[_ScalarType_co]] | Tensor

Call self as a function.