conversion_rate
analysis::object_centric::oc_statisticsSourceConversion rate from
Returns the fraction of
if no
# Errors
Returns an error if
declared, so a rate of
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 atarget_type object related (via E2O) to some event of the given event type. Returns 0.0if no
source_type objects exist.# Errors
Returns an error if
activity names no declared event type, or if either object type is notdeclared, so a rate of
0.0 cannot mean a misspelled name.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