Class SquaredDifferenceKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • squaredDifference

         final static Double squaredDifference(DoubleArray p1, DoubleArray p2)

        Returns the squared difference between two vectors.

        Parameters:
        p1 - The first vector
        p2 - The second vector
        Returns:

        The squared difference calculated as sum((p1_i - p2_i)^2)

      • empiricalSquaredDifference

         final static Double empiricalSquaredDifference(DoubleArray p1, DoubleArray p2)

        Returns the empirical squared difference using trace data.

        Parameters:
        p1 - The first vector (from empirical data)
        p2 - The second vector (from model)
        Returns:

        The squared difference