Class CoVariance


  • public class CoVariance
    extends Lop
    Lop to compute covariance between two 1D matrices
    • Method Detail

      • toString

        public String toString()
        Description copied from class: Lop
        Method to have Lops print their state. This is for debugging purposes.
        Specified by:
        toString in class Lop
      • getInstructions

        public String getInstructions​(String input1,
                                      String input2,
                                      String output)
        Function two generate CP instruction to compute unweighted covariance. input1 -> input column 1 input2 -> input column 2
        Overrides:
        getInstructions in class Lop
        Parameters:
        input1 - input 1
        input2 - input 2
        output - output
        Returns:
        instructions as string
      • getInstructions

        public String getInstructions​(String input1,
                                      String input2,
                                      String input3,
                                      String output)
        Function two generate CP instruction to compute weighted covariance. input1 -> input column 1 input2 -> input column 2 input3 -> weights
        Overrides:
        getInstructions in class Lop
        Parameters:
        input1 - input 1
        input2 - input 2
        input3 - input 3
        output - output
        Returns:
        instructions as string