pub struct ScalableConfig {
pub aspect_threshold: f64,
pub blocksize: usize,
pub oversampling: usize,
pub power_iterations: usize,
pub workers: WorkerConfig,
}
Expand description
Configuration for scalable algorithms
Fields§
§aspect_threshold: f64
Threshold for classifying aspect ratios
blocksize: usize
Block size for hierarchical algorithms
oversampling: usize
Number of oversampling for randomized methods
power_iterations: usize
Number of power iterations for randomized methods
workers: WorkerConfig
Worker configuration for parallel execution
Implementations§
Source§impl ScalableConfig
impl ScalableConfig
Sourcepub fn with_threshold(self, threshold: f64) -> Self
pub fn with_threshold(self, threshold: f64) -> Self
Set the aspect ratio threshold
Sourcepub fn with_blocksize(self, blocksize: usize) -> Self
pub fn with_blocksize(self, blocksize: usize) -> Self
Set the block size
Sourcepub fn with_oversampling(self, oversampling: usize) -> Self
pub fn with_oversampling(self, oversampling: usize) -> Self
Set oversampling parameter
Sourcepub fn with_power_iterations(self, poweriterations: usize) -> Self
pub fn with_power_iterations(self, poweriterations: usize) -> Self
Set power iterations
Sourcepub fn with_workers(self, workers: WorkerConfig) -> Self
pub fn with_workers(self, workers: WorkerConfig) -> Self
Set worker configuration
Trait Implementations§
Source§impl Clone for ScalableConfig
impl Clone for ScalableConfig
Source§fn clone(&self) -> ScalableConfig
fn clone(&self) -> ScalableConfig
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 moreSource§impl Debug for ScalableConfig
impl Debug for ScalableConfig
Auto Trait Implementations§
impl Freeze for ScalableConfig
impl RefUnwindSafe for ScalableConfig
impl Send for ScalableConfig
impl Sync for ScalableConfig
impl Unpin for ScalableConfig
impl UnwindSafe for ScalableConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more