Searched refs:xArray (Results 1 – 4 of 4) sorted by relevance
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/correlation/ |
D | SpearmansCorrelation.java | 147 public double correlation(final double[] xArray, final double[] yArray) in correlation() argument 149 if (xArray.length != yArray.length) { in correlation() 151 LocalizedFormats.DIMENSIONS_MISMATCH_SIMPLE, xArray.length, yArray.length); in correlation() 152 } else if (xArray.length < 2) { in correlation() 154 LocalizedFormats.INSUFFICIENT_DIMENSION, xArray.length, 2); in correlation() 156 return new PearsonsCorrelation().correlation(rankingAlgorithm.rank(xArray), in correlation()
|
D | Covariance.java | 220 public double covariance(final double[] xArray, final double[] yArray, boolean biasCorrected) in covariance() argument 224 int length = xArray.length; in covariance() 232 double xMean = mean.evaluate(xArray); in covariance() 235 double xDev = xArray[i] - xMean; in covariance() 255 public double covariance(final double[] xArray, final double[] yArray) in covariance() argument 257 return covariance(xArray, yArray, true); in covariance()
|
D | PearsonsCorrelation.java | 228 …public double correlation(final double[] xArray, final double[] yArray) throws IllegalArgumentExce… in correlation() argument 230 if (xArray.length != yArray.length) { in correlation() 231 throw new DimensionMismatchException(xArray.length, yArray.length); in correlation() 232 } else if (xArray.length < 2) { in correlation() 234 LocalizedFormats.INSUFFICIENT_DIMENSION, xArray.length, 2); in correlation() 236 for(int i=0; i<xArray.length; i++) { in correlation() 237 regression.addData(xArray[i], yArray[i]); in correlation()
|
/external/skia/src/core/ |
D | SkAAClip.cpp | 805 SkTDArray<uint8_t> xArray; in setRegion() local 808 xArray.setReserve(SkMin32(bounds.width() * 128, 64 * 1024)); in setRegion() 824 append_run(xArray, 0, bounds.width() - prevRight); in setRegion() 831 currY->fOffset = xArray.count(); in setRegion() 832 append_run(xArray, 0, bounds.width()); in setRegion() 837 currY->fOffset = xArray.count(); in setRegion() 843 append_run(xArray, 0, x - prevRight); in setRegion() 846 append_run(xArray, 0xFF, w); in setRegion() 851 append_run(xArray, 0, bounds.width() - prevRight); in setRegion() 854 RunHead* head = RunHead::Alloc(yArray.count(), xArray.bytes()); in setRegion() [all …]
|