Class PatternSupport
- Namespace
- Cratis.Chronicle.Concepts.Patterns
- Assembly
- Cratis.Chronicle.dll
Represents the share of all observed events a pattern was seen in, in the range 0 to 1.
public record PatternSupport : ConceptAs<double>, IComparable<ConceptAs<double>>, IComparable<double>, IComparable, IEquatable<ConceptAs<double>>, IEquatable<PatternSupport>
- Inheritance
-
PatternSupport
- Implements
- Inherited Members
- Extension Methods
Constructors
PatternSupport(PatternSupport)
protected PatternSupport(PatternSupport original)
Parameters
originalPatternSupport
PatternSupport(double)
Represents the share of all observed events a pattern was seen in, in the range 0 to 1.
public PatternSupport(double Value)
Parameters
ValuedoubleThe actual value.
Fields
None
Represents no support at all.
public static readonly PatternSupport None
Field Value
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out double)
public void Deconstruct(out double Value)
Parameters
Valuedouble
Equals(PatternSupport?)
public virtual bool Equals(PatternSupport? other)
Parameters
otherPatternSupport
Returns
Equals(ConceptAs<double>?)
public override sealed bool Equals(ConceptAs<double>? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
Operators
operator ==(PatternSupport?, PatternSupport?)
public static bool operator ==(PatternSupport? left, PatternSupport? right)
Parameters
leftPatternSupportrightPatternSupport
Returns
implicit operator PatternSupport(double)
Implicitly convert from a double to PatternSupport.
public static implicit operator PatternSupport(double value)
Parameters
valuedoubleValue to convert from.
Returns
operator !=(PatternSupport?, PatternSupport?)
public static bool operator !=(PatternSupport? left, PatternSupport? right)
Parameters
leftPatternSupportrightPatternSupport