[−][src]Struct midas_rs::Midas
Methods
impl Midas
[src]
pub fn new(rows: Int, buckets: Int, m_value: Int) -> Self
[src]
pub fn current_time(&self) -> Int
[src]
pub fn insert(&mut self, (source, dest, time): (Int, Int, Int)) -> Float
[src]
Panics
If time < self.current_time()
pub fn query(&self, source: Int, dest: Int) -> Float
[src]
pub fn iterate(
data: impl Iterator<Item = (Int, Int, Int)>,
rows: Int,
buckets: Int,
m_value: Int
) -> impl Iterator<Item = Float>
[src]
data: impl Iterator<Item = (Int, Int, Int)>,
rows: Int,
buckets: Int,
m_value: Int
) -> impl Iterator<Item = Float>
Takes an iterator of (source, dest, time)
thruples and returns
an iterator of corresponding scores.
For a more ergonomic version, see MidasIterator::midas
.
Panics
Subsequent iterator will panic if ever passed a thruple where the third element (the time) decreases from its predecessor.
Auto Trait Implementations
impl RefUnwindSafe for Midas
impl Send for Midas
impl Sync for Midas
impl Unpin for Midas
impl UnwindSafe for Midas
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,