-
Notifications
You must be signed in to change notification settings - Fork 0
Survival parametricoptions gethashcode
github-actions[bot] edited this page Sep 28, 2026
·
1 revision
Development build. This page describes
main, not a released package. The latest published Lodestar.Survival is 0.2.0 — read its documentation.
Home › Survival › Survival estimators
A hash consistent with the equality, in constant time.
public int GetHashCode()Returns — a hash over the confidence level, the iteration budget and the number of breakpoints.
Example — equal options hash alike.
using Lodestar.Survival;
ParametricOptions left = new() { Breakpoints = [2.0, 5.0] };
ParametricOptions right = new() { Breakpoints = [2.0, 5.0] };
bool alike = left.GetHashCode() == right.GetHashCode(); // => TrueRemarks — the breakpoints contribute their count, never their values: equal options agree on the count, and unequal ones are allowed to collide.
Applies to — net10.0, netstandard2.0.
See also — ParametricOptions.Equals,
ParametricOptions.