Trait pointprocesses::generalized::domains::Set [−][src]
pub trait Set {
fn contains(&self, p: &Array1<f64>) -> bool;
fn bounding_box(&self) -> Array2<f64>;
}structs implementing this trait represent regions in n-dimensional space.
Required Methods
fn contains(&self, p: &Array1<f64>) -> bool
Returns whether or not a given vector p lies in the instance.
fn bounding_box(&self) -> Array2<f64>
Returns a bounding box for the set. This function is used for point process simulation by rejection, but can also be used to implement a Monte Carlo estimation of the set"s measure.