Trait LogSeries

Source
pub trait LogSeries: SeriesSealed {
    // Provided methods
    fn log(&self, base: f64) -> Series { ... }
    fn log1p(&self) -> Series { ... }
    fn exp(&self) -> Series { ... }
    fn entropy(&self, base: f64, normalize: bool) -> Result<f64, PolarsError> { ... }
}

Provided Methods§

Source

fn log(&self, base: f64) -> Series

Compute the logarithm to a given base

Source

fn log1p(&self) -> Series

Compute the natural logarithm of all elements plus one in the input array

Source

fn exp(&self) -> Series

Calculate the exponential of all elements in the input array.

Source

fn entropy(&self, base: f64, normalize: bool) -> Result<f64, PolarsError>

Compute the entropy as -sum(pk * log(pk). where pk are discrete probabilities.

Implementors§