pub struct LinearRegionCounter { /* private fields */ }Expand description
Counter for linear regions of piecewise linear functions
Implementations§
Source§impl LinearRegionCounter
impl LinearRegionCounter
Sourcepub fn hyperplane_arrangement_max(&self, num_hyperplanes: usize) -> u128
pub fn hyperplane_arrangement_max(&self, num_hyperplanes: usize) -> u128
Theoretical maximum for n-dimensional input with k hyperplanes This is the central zone counting problem
Sourcepub fn zaslavsky_formula(&self, num_hyperplanes: usize) -> u128
pub fn zaslavsky_formula(&self, num_hyperplanes: usize) -> u128
Zaslavsky’s theorem: count regions of hyperplane arrangement For a general position arrangement of k hyperplanes in R^n: regions = sum_{i=0}^n C(k, i)
Trait Implementations§
Source§impl Clone for LinearRegionCounter
impl Clone for LinearRegionCounter
Source§fn clone(&self) -> LinearRegionCounter
fn clone(&self) -> LinearRegionCounter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LinearRegionCounter
impl RefUnwindSafe for LinearRegionCounter
impl Send for LinearRegionCounter
impl Sync for LinearRegionCounter
impl Unpin for LinearRegionCounter
impl UnwindSafe for LinearRegionCounter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more