Table of Contents

Method ResultantLength

Namespace
LMKit.Graphics.Geometry
Assembly
LM-Kit.NET.dll

ResultantLength(ReadOnlySpan<double>)

Computes the mean resultant length (R) of angles in degrees, a concentration measure in [0,1].

public static double ResultantLength(ReadOnlySpan<double> anglesDeg)

Parameters

anglesDeg ReadOnlySpan<double>

Angles in degrees.

Returns

double

R in [0,1], where 1 indicates perfect alignment and 0 indicates a uniform (or symmetric) spread. Returns NaN for an empty input.