Skip to main content
Rust4PM

SchemaStats

Metrics plus optional throughput for a single schema.
Used as Input

0

functions accept this type

Used as Output

0

functions return this type(+1 nested)

Type Definition

16 nested items
struct— Metrics plus optional throughput for a single schema.
metrics*:SchemaMetrics— Quality metrics for a path schema, computed from its instance connections.
coverage*:f64— Fraction of source-type instances with at least one connection.
exclusivity*:f64— Inverse average fan-in: |distinct targets| / support. High = each target reached by few sources.
path_count*:i64<uint>— Total number of connections.
reach*:f64— Fraction of target-type instances reached.
selectivity*:f64— Inverse average fan-out: 1 / (avg distinct targets per connected source). High = discriminating.
sources_with_paths*:i64<uint>— Number of distinct source entities with at least one connection.
support*:i64<uint>— Number of distinct (source, target) pairs connected.
total_sources*:i64<uint>— Total number of source entities of this type.
throughput:Option<ThroughputStats>— Event-to-event throughput times, if both endpoints are events.
variant 2:()

Example JSON Value

json
{
  "metrics": {
    "coverage": 0.2,
    "exclusivity": 0.2,
    "path_count": 1,
    "reach": 0.2,
    "selectivity": 0.2,
    "sources_with_paths": 1,
    "support": 1,
    "total_sources": 1
  }
}