pub struct Dataset {
pub num_windows: usize,
pub num_bins: usize,
pub dimens_lengths: Vec<usize>,
pub kT: f64,
pub histograms: Vec<Histogram>,
pub cyclic: bool,
pub weights: Vec<f64>,
/* private fields */
}Fields§
§num_windows: usize§num_bins: usize§dimens_lengths: Vec<usize>§kT: f64§histograms: Vec<Histogram>§cyclic: bool§weights: Vec<f64>Implementations§
Source§impl Dataset
impl Dataset
pub fn new( num_bins: usize, dimens_lengths: Vec<usize>, bin_width: Vec<f64>, hist_min: Vec<f64>, hist_max: Vec<f64>, bias_pos: Vec<f64>, bias_fc: Vec<f64>, kT: f64, histograms: Vec<Histogram>, cyclic: bool, ) -> Dataset
pub fn new_weighted(ds: Dataset, weights: Vec<f64>) -> Dataset
pub fn get_weighted_bin_count(&self, bin: usize) -> f64
pub fn get_coords_for_bin(&self, bin: usize) -> Vec<f64>
pub fn get_bias(&self, bin: usize, window: usize) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dataset
impl RefUnwindSafe for Dataset
impl Send for Dataset
impl Sync for Dataset
impl Unpin for Dataset
impl UnwindSafe for Dataset
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