jacopy.packages.metric_affine.MetricValue¶
- class jacopy.packages.metric_affine.MetricValue(metric_name, X, Y)¶
Bases:
Atomg(X, Y)— a metric evaluation, a scalarC^∞function (degree-0 atom, NOT a derivation; slot protocol onX, Y).Methods
__init__(metric_name, X, Y)clone()Return
self.find(predicate)Yield descendants (including self) satisfying
predicate.replace_at(path, new)Return a new tree with
newspliced atpath.substitute_atom(dummy, target)Slot-walking substitution (the base Atom walk sees no children; the metric's arguments live in slots — needed for index renaming under an IndexedSum).
walk()Pre-order traversal yielding
selffollowed by descendants throughchildrenonly.with_slots(X, Y)Attributes
XYchildrenTuple of immediate children.
A metric evaluation is a scalar function.
is_atommetric_namerewritable_slots- property degree: Degree¶
A metric evaluation is a scalar function.