Class MvnResourceUsageIndexedNormalizedSamples_1_0

java.lang.Object
com.gradle.scan.eventmodel.maven.resourceusage.MvnResourceUsageIndexedNormalizedSamples_1_0

public class MvnResourceUsageIndexedNormalizedSamples_1_0 extends Object
An indexed and normalized representation of an array of samples.
  • Field Details

    • indices

      public final List<List<Integer>> indices
      The indices allowing to map the samples to domain objects.

      The outer list has the same length as the number of samples. The inner list contains the indices of the domain objects that a given sample is associated with.

    • samples

      public final List<byte[]> samples
      An array of normalized samples.

      The outer list has the same length as the number of samples. The inner array has the same length as the inner list of indices. Each value is normalized to a percentage of the max value, and thus fits in a single byte. This induces a loss of precision.

    • max

      public final long max
      The maximum, non-normalized, value of all samples.
  • Constructor Details

    • MvnResourceUsageIndexedNormalizedSamples_1_0

      public MvnResourceUsageIndexedNormalizedSamples_1_0(List<List<Integer>> indices, List<byte[]> samples, long max)
  • Method Details