Package sc.fiji.snt.analysis
Record Class CircularModels.VonMisesFit
java.lang.Object
java.lang.Record
sc.fiji.snt.analysis.CircularModels.VonMisesFit
- Record Components:
muDeg- mean direction/orientation in degrees (normalized bydomain);NaNif undefinedkappa- concentration parameter (>= 0), estimated fromrBarrBar- mean resultant length in [0,1]; equals ADC (directional) or ODC (axial)domain- domain of the angles used in the fit (directional vs axial)
- Enclosing class:
CircularModels
public static record CircularModels.VonMisesFit(double muDeg, double kappa, double rBar, CircularModels.Domain domain)
extends Record
Immutable summary of a von Mises fit on circular (directional) or axial (orientation) data.
Conventions used by SNT:
- Domain.DIRECTIONAL operates on angles in [0,360[ degrees; opposite directions are distinct.
- Domain.AXIAL operates on orientations in [0,180[ degrees; opposite directions are equivalent
The reported
muDegis halved and normalized back to [0,180).
muDeg: mean direction/orientation in degrees. Normalized to [0,360[ forCircularModels.Domain.DIRECTIONALand to [0,180) forCircularModels.Domain.AXIAL. May beNaNwhen the distribution is empty (total weight = 0).kappa: von Mises concentration (unitless). Zero indicates a uniform distribution; larger values indicate stronger concentration. Estimated from the mean resultant length viaCircularModels.kappaFromRBar(double).rBar: mean resultant length in [0,1] (also written as R̄, “Rbar”). ForCircularModels.Domain.DIRECTIONALthis equals the Angular Distribution Coherence (ADC); forCircularModels.Domain.AXIALit equals the Orientation Distribution Coherence (ODC).domain: identifies whether the fit was directional or axial; determines the normalization ofmuDegand the interpretation ofrBar.
Note that a single von Mises model is inherently unimodal;
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVonMisesFit(double muDeg, double kappa, double rBar, CircularModels.Domain domain) Creates an instance of aVonMisesFitrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublekappa()Returns the value of thekapparecord component.doublemuDeg()Returns the value of themuDegrecord component.doublerBar()Returns the value of therBarrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
muDeg
public double muDeg()Returns the value of themuDegrecord component.- Returns:
- the value of the
muDegrecord component
-
kappa
public double kappa()Returns the value of thekapparecord component.- Returns:
- the value of the
kapparecord component
-
rBar
public double rBar()Returns the value of therBarrecord component.- Returns:
- the value of the
rBarrecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-