pub struct CsvConfig { /* private fields */ }
Expand description
Configuration for CSV-based MCMC storage.
This storage backend creates Stan-compatible CSV files with one file per chain.
Files are named chain_{id}.csv
where {id}
is the chain number starting from 0.
The CSV format matches CmdStan output:
- Header row with column names
- Warmup samples with negative sample_id
- Post-warmup samples with positive sample_id
- Standard Stan statistics (lp__, stepsize, treedepth, etc.)
- Parameter columns
Implementations§
Source§impl CsvConfig
impl CsvConfig
Sourcepub fn with_precision(self, precision: usize) -> Self
pub fn with_precision(self, precision: usize) -> Self
Set the precision (number of decimal places) for floating point values.
Default is 6 decimal places.
Sourcepub fn store_warmup(self, store: bool) -> Self
pub fn store_warmup(self, store: bool) -> Self
Configure whether to store warmup samples.
When true (default), warmup samples are included with negative sample IDs. When false, only post-warmup samples are stored.
Auto Trait Implementations§
impl Freeze for CsvConfig
impl RefUnwindSafe for CsvConfig
impl Send for CsvConfig
impl Sync for CsvConfig
impl Unpin for CsvConfig
impl UnwindSafe for CsvConfig
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> 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