# 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: T`

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

`g: usize`

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

`delta: usize`

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

## Methods

`impl<T> Tuple<T> where`

T: Ord,

[src]

T: Ord,

## Trait Implementations

`impl<T: Eq> Eq for Tuple<T> where`

T: Ord,

[src]

T: Ord,

`impl<T: Ord> Ord for Tuple<T> where`

T: Ord,

[src]

T: Ord,

`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]

T: Ord,

`impl<T> PartialEq for Tuple<T> where`

T: Ord,

[src]

T: Ord,

`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]

T: Ord,

`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