Documentation ¶
Overview ¶
Package scalers holds the interface for scaling depths to standardized scores.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColCentered ¶
type ColCentered struct { Centerer func([]float64) float64 // contains filtered or unexported fields }
func (*ColCentered) Scale ¶
func (cc *ColCentered) Scale(a *mat.Dense)
func (*ColCentered) UnScale ¶
func (cc *ColCentered) UnScale(a *mat.Dense)
type Log2 ¶
type Log2 struct {
CC *ColCentered
}
Log2 implements Scaler interface to perform log2 transformation on depths.
type RowCentered ¶
type RowCentered struct { Centerer func([]float64) float64 // contains filtered or unexported fields }
func (*RowCentered) Scale ¶
func (rc *RowCentered) Scale(a *mat.Dense)
func (*RowCentered) UnScale ¶
func (rc *RowCentered) UnScale(a *mat.Dense)
type Scaler ¶
type Scaler interface { // Scale Converts from AdjustedDepth to a scaled value Scale(*mat.Dense) UnScale(*mat.Dense) }
Scaler allows transformation and back of the depths. As an example, see the `ZScore` struct. Usually, these will be 0-centered
Click to show internal directories.
Click to hide internal directories.