Struct pointprocesses::generalized::Rectangle [−][src]
pub struct Rectangle(_, _);
General n-dimensional hyperrectangle.
Methods
impl Rectangle
[src]
impl Rectangle
pub fn new(close: Array<f64, Ix1>, far: Array<f64, Ix1>) -> Rectangle
[src]
pub fn new(close: Array<f64, Ix1>, far: Array<f64, Ix1>) -> Rectangle
close
is the point with smaller coordinates,
far
is the further point delimiting the rectangle,
with the largest coordinates.
Trait Implementations
impl Set for Rectangle
[src]
impl Set for Rectangle
fn contains(&self, p: &Array<f64, Ix1>) -> bool
[src]
fn contains(&self, p: &Array<f64, Ix1>) -> bool
Returns whether or not a given vector p
lies in the instance.
fn bounding_box(&self) -> Array<f64, Ix2>
[src]
fn bounding_box(&self) -> Array<f64, Ix2>
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. Read more