Class PearsonCorrelation

Object
PearsonCorrelation
All Implemented Interfaces:
Computation<SFixed,​ProtocolBuilderNumeric>

public class PearsonCorrelation
extends Object
implements Computation<SFixed,​ProtocolBuilderNumeric>
Compute the correlation between two samples. Note that the mean needs to be computed for both samples. This may be done using the Mean class.
  • Constructor Details

    • PearsonCorrelation

      public PearsonCorrelation​(List<DRes<SFixed>> x, DRes<SFixed> meanX, List<DRes<SFixed>> y, DRes<SFixed> meanY)
  • Method Details

    • buildComputation

      public DRes<SFixed> buildComputation​(ProtocolBuilderNumeric root)
      Specified by:
      buildComputation in interface Computation<SFixed,​ProtocolBuilderNumeric>