Skip to main content
Rust4PM

event_timestamp_histogram

process_mining::analysis::case_centric::event_timestamp_histogram

Functions in this Module(1)

get_event_timestamps

analysis::case_centric::event_timestamp_histogramSource
Aggregate event timestamps into a fixed number of bins, grouped by activity.
Events without a valid timestamp are skipped; events without a recognized
activity are counted under "UNKNOWN".
EventLogrequired
EventTimestampOptionsOptions for [`get_event_timestamps`].
import r4pm

# Also: .xes.gz, .json
log = r4pm.import_item('EventLog', 'log.xes')
# Optional argument: options, can also be omitted
options = {"activity_key": 'example', "num_bins": 1, "timestamp_key": 'example'}
res = r4pm.bindings.get_event_timestamps(log, options)

process_mining/src/analysis/case_centric/event_timestamp_histogram.rs:58