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 Summary
Constructors Constructor Description PearsonCorrelation(List<DRes<SFixed>> x, DRes<SFixed> meanX, List<DRes<SFixed>> y, DRes<SFixed> meanY)
-
Method Summary
Modifier and Type Method Description DRes<SFixed>
buildComputation(ProtocolBuilderNumeric root)
-
Constructor Details
-
Method Details
-
buildComputation
public DRes<SFixed> buildComputation(ProtocolBuilderNumeric root)- Specified by:
buildComputation
in interfaceComputation<SFixed,ProtocolBuilderNumeric>
-