HumanoidMocap/Core/Motion/JointTrackDiagnostics.cs

A small data record type used by the HumanoidMocap motion system. It holds diagnostic counts and timing about a single joint track, including bone name, optional role, counts for reconstructed/inferred/IK-generated/unobserved frames, longest missing interval, a list of missing observation intervals, and an authored count.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using HumanoidMocap.Core.Mapping;

namespace HumanoidMocap.Core.Motion;
using Vector3=System.Numerics.Vector3;

public sealed record JointTrackDiagnostics(string Bone,BoneRole? Role,int Reconstructed,int Inferred,int GeneratedIk,int Unobserved,
    double LongestMissingSeconds,IReadOnlyList<MissingObservationInterval> MissingIntervals,int Authored=0);