CohensD.m 253 B

1234567
  1. function [dret] = CohensD( distroA, distroB )
  2. n1 = numel( distroA );
  3. n2 = numel( distroB );
  4. s = sqrt( ( (n1 - 1)*(std(distroA)^2) + (n2 - 1)*(std(distroB)^2) ) / (n1 + n2 - 2) );
  5. dret = ( mean(distroA) - mean(distroB) ) / s;
  6. end