Skip to main content
Rust4PM

oc_statistics

process_mining::analysis::object_centric::oc_statistics

Functions in this Module(2)

conversion_rate

analysis::object_centric::oc_statisticsSource
Conversion rate from source_type to target_type via O2O, restricted to targets touched by activity.
Returns the fraction of source_type objects that have at least one outgoing O2O edge to a
target_type object related (via E2O) to some event of the given event type. Returns 0.0
if no source_type objects exist.
# Errors
Returns an error if activity names no declared event type, or if either object type is not
declared, so a rate of 0.0 cannot mean a misspelled name.
SlimLinkedOCELrequired
Stringrequired
Stringrequired
Stringrequired
import r4pm

# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
res = r4pm.bindings.conversion_rate(ocel, 'example', 'example', 'example')

process_mining/src/analysis/object_centric/oc_statistics.rs:57

event_object_type_counts

analysis::object_centric::oc_statisticsSource
Count related (event, object) pairs per (event_type, object_type) pair.
Each entry is (event_type, object_type, count). An object related to an event under several
qualifiers counts once for that event. Pairs with zero relations are omitted.
Sorted by (event_type, object_type).
SlimLinkedOCELrequired
import r4pm

# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
res = r4pm.bindings.event_object_type_counts(ocel)

process_mining/src/analysis/object_centric/oc_statistics.rs:18