[−][src]Struct cuba::CubaIntegrator
A Cuba integrator. It should be created with an integrand function.
Methods
impl CubaIntegrator
[src]
pub fn new() -> CubaIntegrator
[src]
Create a new Cuba integrator. Use the set_
functions
to set integration parameters.
pub fn set_cores(
&mut self,
cores: usize,
max_points_per_core: usize
) -> &mut Self
[src]
&mut self,
cores: usize,
max_points_per_core: usize
) -> &mut Self
Set the number of cores and the maximum number of points per core.
The default is the number of idle cores for cores
and
1000 for max_points_per_core
.
pub fn set_mineval(&mut self, mineval: i64) -> &mut Self
[src]
pub fn set_maxeval(&mut self, maxeval: i64) -> &mut Self
[src]
pub fn set_nstart(&mut self, nstart: i64) -> &mut Self
[src]
pub fn set_nincrease(&mut self, nincrease: i64) -> &mut Self
[src]
pub fn set_epsrel(&mut self, epsrel: f64) -> &mut Self
[src]
pub fn set_epsabs(&mut self, epsabs: f64) -> &mut Self
[src]
pub fn set_batch(&mut self, batch: i64) -> &mut Self
[src]
pub fn set_seed(&mut self, seed: i32) -> &mut Self
[src]
pub fn set_use_only_last_sample(
&mut self,
use_only_last_sample: bool
) -> &mut Self
[src]
&mut self,
use_only_last_sample: bool
) -> &mut Self
pub fn set_save_state_file(&mut self, save_state_file: String) -> &mut Self
[src]
pub fn set_keep_state_file(&mut self, keep_state_file: bool) -> &mut Self
[src]
pub fn set_reset_vegas_integrator(
&mut self,
reset_vegas_integrator: bool
) -> &mut Self
[src]
&mut self,
reset_vegas_integrator: bool
) -> &mut Self
pub fn set_key(&mut self, key: i32) -> &mut Self
[src]
pub fn set_key1(&mut self, key1: i32) -> &mut Self
[src]
pub fn set_key2(&mut self, key2: i32) -> &mut Self
[src]
pub fn set_key3(&mut self, key3: i32) -> &mut Self
[src]
pub fn set_maxpass(&mut self, maxpass: i32) -> &mut Self
[src]
pub fn set_border(&mut self, border: f64) -> &mut Self
[src]
pub fn set_maxchisq(&mut self, maxchisq: f64) -> &mut Self
[src]
pub fn set_mindeviation(&mut self, mindeviation: f64) -> &mut Self
[src]
pub fn vegas<T>(
&mut self,
ndim: usize,
ncomp: usize,
nvec: usize,
verbosity: CubaVerbosity,
gridno: i32,
integrand: VegasIntegrand<T>,
user_data: T
) -> CubaResult
[src]
&mut self,
ndim: usize,
ncomp: usize,
nvec: usize,
verbosity: CubaVerbosity,
gridno: i32,
integrand: VegasIntegrand<T>,
user_data: T
) -> CubaResult
Integrate using the Vegas integrator.
ndim
- Dimension of the inputncomp
- Dimension (components) of the outputnvec
- Number of input points given to the integrand functionverbosity
- Verbosity levelgridno
- Grid number between -10 and 10. If 0, no grid is stored. If it is positive, the grid is storedin thegridno
th slot. With a negative number the grid is cleared.user_data
- User data used by the integrand function
pub fn suave<T>(
&mut self,
ndim: usize,
ncomp: usize,
nvec: usize,
nnew: usize,
nmin: usize,
flatness: f64,
verbosity: CubaVerbosity,
integrand: SuaveIntegrand<T>,
user_data: T
) -> CubaResult
[src]
&mut self,
ndim: usize,
ncomp: usize,
nvec: usize,
nnew: usize,
nmin: usize,
flatness: f64,
verbosity: CubaVerbosity,
integrand: SuaveIntegrand<T>,
user_data: T
) -> CubaResult
Integrate using the Suave integrator.
ndim
- Dimension of the inputncomp
- Dimension (components) of the outputnvec
- Number of input points given to the integrand functionnnew
- Number of new integrand evaluations in each subdivisionnmin
- Minimum number of samples a former pass must contribute to a subregion to be considered in that region’s compound integral valueflatness
- This determines how prominently individual samples with a large fluctuation figure in the total fluctuationverbosity
- Verbosity leveluser_data
- User data used by the integrand function
pub fn divonne<T>(
&mut self,
ndim: usize,
ncomp: usize,
nvec: usize,
xgiven: &[f64],
verbosity: CubaVerbosity,
integrand: DivonneIntegrand<T>,
user_data: T
) -> CubaResult
[src]
&mut self,
ndim: usize,
ncomp: usize,
nvec: usize,
xgiven: &[f64],
verbosity: CubaVerbosity,
integrand: DivonneIntegrand<T>,
user_data: T
) -> CubaResult
Integrate using the Divonne integrator.
ndim
- Dimension of the inputncomp
- Dimension (components) of the outputnvec
- Number of input points given to the integrand functionxgiven
- A list of input points which lie close to peaksverbosity
- Verbosity leveluser_data
- User data used by the integrand function
pub fn cuhre<T>(
&mut self,
ndim: usize,
ncomp: usize,
nvec: usize,
verbosity: CubaVerbosity,
integrand: CuhreIntegrand<T>,
user_data: T
) -> CubaResult
[src]
&mut self,
ndim: usize,
ncomp: usize,
nvec: usize,
verbosity: CubaVerbosity,
integrand: CuhreIntegrand<T>,
user_data: T
) -> CubaResult
Integrate using the Cuhre integrator.
ndim
- Dimension of the inputncomp
- Dimension (components) of the outputnvec
- Number of input points given to the integrand functionverbosity
- Verbosity leveluser_data
- User data used by the integrand function
Auto Trait Implementations
impl RefUnwindSafe for CubaIntegrator
impl Send for CubaIntegrator
impl Sync for CubaIntegrator
impl Unpin for CubaIntegrator
impl UnwindSafe for CubaIntegrator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,