Struct quantiles::greenwald_khanna::Tuple [−] [src]

```pub struct Tuple<T> where    T: Ord,  {
pub v: T,
pub g: usize,
pub delta: usize,
}```

3-tuple of a value v[i], g[i] and delta[i].

Fields

v[i], an observation in the set of observations

the difference between the rank lowerbounds of t[i] and t[i-1] g = r_min(v[i]) - r_min(v[i - 1])

the difference betweeh the rank upper and lower bounds for this tuple

Methods

`impl<T> Tuple<T> where    T: Ord, `[src]

`fn new(v: T, g: usize, delta: usize) -> Tuple<T>`[src]

Creates a new instance of a Tuple

Trait Implementations

`impl<T: Ord> Ord for Tuple<T> where    T: Ord, `[src]

`fn cmp(&self, __arg_0: &Tuple<T>) -> Ordering`[src]

This method returns an `Ordering` between `self` and `other`. Read more

`fn max(self, other: Self) -> Self`1.22.0[src]

Compares and returns the maximum of two values. Read more

`fn min(self, other: Self) -> Self`1.22.0[src]

Compares and returns the minimum of two values. Read more

`impl<T: Debug> Debug for Tuple<T> where    T: Ord, `[src]

`fn fmt(&self, __arg_0: &mut Formatter) -> Result`[src]

Formats the value using the given formatter.

`impl<T> PartialEq for Tuple<T> where    T: Ord, `[src]

`fn eq(&self, other: &Self) -> bool`[src]

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

`fn ne(&self, other: &Rhs) -> bool`1.0.0[src]

This method tests for `!=`.

`impl<T> PartialOrd for Tuple<T> where    T: Ord, `[src]

`fn partial_cmp(&self, other: &Self) -> Option<Ordering>`[src]

This method returns an ordering between `self` and `other` values if one exists. Read more

`fn lt(&self, other: &Rhs) -> bool`1.0.0[src]

This method tests less than (for `self` and `other`) and is used by the `<` operator. Read more

`fn le(&self, other: &Rhs) -> bool`1.0.0[src]

This method tests less than or equal to (for `self` and `other`) and is used by the `<=` operator. Read more

`fn gt(&self, other: &Rhs) -> bool`1.0.0[src]

This method tests greater than (for `self` and `other`) and is used by the `>` operator. Read more

`fn ge(&self, other: &Rhs) -> bool`1.0.0[src]

This method tests greater than or equal to (for `self` and `other`) and is used by the `>=` operator. Read more