Trait ndarray_stats::MaybeNan [−][src]
A number type that can have not-a-number values.
Associated Types
Loading content...Required methods
fn is_nan(&self) -> bool
[src]
Returns true
if the value is a NaN value.
fn try_as_not_nan(&self) -> Option<&Self::NotNan>
[src]
Tries to convert the value to NotNan
.
Returns None
if the value is a NaN value.
fn from_not_nan(_: Self::NotNan) -> Self
[src]
Converts the value.
If the value is None
, a NaN value is returned.
fn from_not_nan_opt(_: Option<Self::NotNan>) -> Self
[src]
Converts the value.
If the value is None
, a NaN value is returned.
fn from_not_nan_ref_opt(_: Option<&Self::NotNan>) -> &Self
[src]
Converts the value.
If the value is None
, a NaN value is returned.
fn remove_nan_mut(_: ArrayViewMut1<'_, Self>) -> ArrayViewMut1<'_, Self::NotNan>
[src]
Returns a view with the NaN values removed.
This modifies the input view by moving elements as necessary. The final order of the elements is unspecified. However, this method is idempotent, and given the same input data, the result is always ordered the same way.
Implementations on Foreign Types
impl MaybeNan for f32
[src]
type NotNan = N32
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&N32>
[src]
fn from_not_nan(value: N32) -> f32
[src]
fn from_not_nan_opt(value: Option<N32>) -> f32
[src]
fn from_not_nan_ref_opt(value: Option<&N32>) -> &f32
[src]
fn remove_nan_mut(view: ArrayViewMut1<'_, f32>) -> ArrayViewMut1<'_, N32>
[src]
impl MaybeNan for f64
[src]
type NotNan = N64
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&N64>
[src]
fn from_not_nan(value: N64) -> f64
[src]
fn from_not_nan_opt(value: Option<N64>) -> f64
[src]
fn from_not_nan_ref_opt(value: Option<&N64>) -> &f64
[src]
fn remove_nan_mut(view: ArrayViewMut1<'_, f64>) -> ArrayViewMut1<'_, N64>
[src]
impl MaybeNan for Option<u8>
[src]
type NotNan = NotNone<u8>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<u8>>
[src]
fn from_not_nan(value: NotNone<u8>) -> Option<u8>
[src]
fn from_not_nan_opt(value: Option<NotNone<u8>>) -> Option<u8>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<u8>>) -> &Option<u8>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<u16>
[src]
type NotNan = NotNone<u16>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<u16>>
[src]
fn from_not_nan(value: NotNone<u16>) -> Option<u16>
[src]
fn from_not_nan_opt(value: Option<NotNone<u16>>) -> Option<u16>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<u16>>) -> &Option<u16>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<u32>
[src]
type NotNan = NotNone<u32>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<u32>>
[src]
fn from_not_nan(value: NotNone<u32>) -> Option<u32>
[src]
fn from_not_nan_opt(value: Option<NotNone<u32>>) -> Option<u32>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<u32>>) -> &Option<u32>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<u64>
[src]
type NotNan = NotNone<u64>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<u64>>
[src]
fn from_not_nan(value: NotNone<u64>) -> Option<u64>
[src]
fn from_not_nan_opt(value: Option<NotNone<u64>>) -> Option<u64>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<u64>>) -> &Option<u64>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<u128>
[src]
type NotNan = NotNone<u128>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<u128>>
[src]
fn from_not_nan(value: NotNone<u128>) -> Option<u128>
[src]
fn from_not_nan_opt(value: Option<NotNone<u128>>) -> Option<u128>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<u128>>) -> &Option<u128>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<i8>
[src]
type NotNan = NotNone<i8>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<i8>>
[src]
fn from_not_nan(value: NotNone<i8>) -> Option<i8>
[src]
fn from_not_nan_opt(value: Option<NotNone<i8>>) -> Option<i8>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<i8>>) -> &Option<i8>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<i16>
[src]
type NotNan = NotNone<i16>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<i16>>
[src]
fn from_not_nan(value: NotNone<i16>) -> Option<i16>
[src]
fn from_not_nan_opt(value: Option<NotNone<i16>>) -> Option<i16>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<i16>>) -> &Option<i16>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<i32>
[src]
type NotNan = NotNone<i32>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<i32>>
[src]
fn from_not_nan(value: NotNone<i32>) -> Option<i32>
[src]
fn from_not_nan_opt(value: Option<NotNone<i32>>) -> Option<i32>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<i32>>) -> &Option<i32>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<i64>
[src]
type NotNan = NotNone<i64>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<i64>>
[src]
fn from_not_nan(value: NotNone<i64>) -> Option<i64>
[src]
fn from_not_nan_opt(value: Option<NotNone<i64>>) -> Option<i64>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<i64>>) -> &Option<i64>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<i128>
[src]
type NotNan = NotNone<i128>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<i128>>
[src]
fn from_not_nan(value: NotNone<i128>) -> Option<i128>
[src]
fn from_not_nan_opt(value: Option<NotNone<i128>>) -> Option<i128>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<i128>>) -> &Option<i128>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<N32>
[src]
type NotNan = NotNone<N32>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<N32>>
[src]
fn from_not_nan(value: NotNone<N32>) -> Option<N32>
[src]
fn from_not_nan_opt(value: Option<NotNone<N32>>) -> Option<N32>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<N32>>) -> &Option<N32>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
impl MaybeNan for Option<N64>
[src]
type NotNan = NotNone<N64>
fn is_nan(&self) -> bool
[src]
fn try_as_not_nan(&self) -> Option<&NotNone<N64>>
[src]
fn from_not_nan(value: NotNone<N64>) -> Option<N64>
[src]
fn from_not_nan_opt(value: Option<NotNone<N64>>) -> Option<N64>
[src]
fn from_not_nan_ref_opt(value: Option<&NotNone<N64>>) -> &Option<N64>
[src]
fn remove_nan_mut(
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>
[src]
view: ArrayViewMut1<'_, Self>
) -> ArrayViewMut1<'_, Self::NotNan>