pub struct TransitionModel {
pub transitions: HashMap<String, HashMap<String, u64>>,
pub start_activities: HashMap<String, u64>,
pub end_activities: HashMap<String, u64>,
pub activity_counts: HashMap<String, u64>,
pub trace_count: u64,
pub avg_durations: HashMap<(String, String), f64>,
}Expand description
Learned transition model for imputation.
Fields§
§transitions: HashMap<String, HashMap<String, u64>>Transition counts: from -> to -> count.
start_activities: HashMap<String, u64>Start activity frequencies.
end_activities: HashMap<String, u64>End activity frequencies.
activity_counts: HashMap<String, u64>Activity frequencies.
trace_count: u64Total traces.
avg_durations: HashMap<(String, String), f64>Average time between activities.
Implementations§
Source§impl TransitionModel
impl TransitionModel
Sourcepub fn expected_next(&self, from: &str, min_support: f64) -> Vec<(String, f64)>
pub fn expected_next(&self, from: &str, min_support: f64) -> Vec<(String, f64)>
Get expected next activities from a given activity.
Sourcepub fn is_expected_transition(
&self,
from: &str,
to: &str,
min_support: f64,
) -> bool
pub fn is_expected_transition( &self, from: &str, to: &str, min_support: f64, ) -> bool
Check if transition is expected.
Trait Implementations§
Source§impl Clone for TransitionModel
impl Clone for TransitionModel
Source§fn clone(&self) -> TransitionModel
fn clone(&self) -> TransitionModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransitionModel
impl Debug for TransitionModel
Source§impl Default for TransitionModel
impl Default for TransitionModel
Source§fn default() -> TransitionModel
fn default() -> TransitionModel
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransitionModel
impl RefUnwindSafe for TransitionModel
impl Send for TransitionModel
impl Sync for TransitionModel
impl Unpin for TransitionModel
impl UnwindSafe for TransitionModel
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.