Skip to content

Commit

Permalink
feat: make magnitude estimation function public
Browse files Browse the repository at this point in the history
  • Loading branch information
pnevyk committed Nov 13, 2023
1 parent 8df2340 commit 69b037a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ use nalgebra::{storage::StorageMut, OVector, RealField, Vector};

use crate::core::Sample;

fn estimate_magnitude<T: RealField + Copy>(lower: T, upper: T) -> T {
/// Estimates magnitude of the variable given lower and upper bounds.
pub fn estimate_magnitude<T: RealField + Copy>(lower: T, upper: T) -> T {
let ten = T::from_subset(&10.0);
let half = T::from_subset(&0.5);

Expand Down

0 comments on commit 69b037a

Please sign in to comment.