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> { ... }
}
Compute the logarithm to a given base
Compute the natural logarithm of all elements plus one in the input array
Calculate the exponential of all elements in the input array.
Compute the entropy as -sum(pk * log(pk)
.
where pk
are discrete probabilities.