ГОСТ Р ИСО 15531-42—2010
ongm_relation. rule_of_reference_to_origin_relation;
reference_to_unit_relation: OPTIONAL rule_of_unlt_relat»on:
END_ENTITY;
ENTITY rule_of_reference_to_orlgm_relation:
contents_of_ruie: type_of_descript»on_of_transformation_rule;
END_ENTITY;
ENTITY rule_of_umt_relatlon;
contents_of_rule: type_of_descripbon_of_transformation_rule;
END_ENTITY;
ENTITY time_unit_reletlon;
relatlng_time_umt: tlme_unrt;
related_ilme_unlt tlme_unlt.
reference_to_unlt_relation: rule_of_unlt_relation;
END_ENTITY;
ENTITY point_ln_t»me_event_assignment;
assigned_2_to: polnt_ln_tlme;
assigned_1_to: event_occurrence; « event_occurrence generic entity
from 10303-41
rote: pomt_ln_time_event_assignment_role;
END_ENTITY;
ENTITY point_in_time_event_a83ignment_role;
name: label;
descnptlon: text;
END_ENTITY;
FUNCTION frequency
(event: event_occurrence;
•d: string;
time_meas_unlt:polnt_m_tlme;
unit_of_measure: unit;
llmrt_points. SET (0:2] OF asslgned_2_to}:REAL:
LOCAL
Inf: REAL;
sup: REAL.
ttme_dlst: REAL;
a:SET OF assigned_1_to := event:
b:SET OF assigned_2_to .
count. INTEGER;
num_event: INTEGER;
END_LOCAL;
inf .= LOBOUND (limlt_polnts).
sup := HIBOUND (limit_pomts);
time_dlst :* sup - inf;
c o u n t 0;
REPEAT I := 1 TO HIINDEX(a).
IF (b > inf) AND (b < sup)
THEN count :* count + 1;
ENDJF;
END_REPEAT;
num_event :* count;
frequ_event := num_event / time_dist:
RETURN <frequ_event);
END_F UNCTION;
END_SCHEMA; - tlme_domaln_schema
29