Home
last modified time | relevance | path

Searched refs:xArray (Results 1 – 5 of 5) sorted by relevance

/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/correlation/
DSpearmansCorrelation.java147 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()
DCovariance.java220 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()
DPearsonsCorrelation.java228 …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/
DSkAAClip.cpp721 SkTDArray<uint8_t> xArray; in setRegion() local
724 xArray.setReserve(std::min(bounds.width(), 512) * 128); in setRegion()
740 append_run(xArray, 0, bounds.width() - prevRight); in setRegion()
747 currY->fOffset = xArray.count(); in setRegion()
748 append_run(xArray, 0, bounds.width()); in setRegion()
753 currY->fOffset = xArray.count(); in setRegion()
759 append_run(xArray, 0, x - prevRight); in setRegion()
762 append_run(xArray, 0xFF, w); in setRegion()
767 append_run(xArray, 0, bounds.width() - prevRight); in setRegion()
770 RunHead* head = RunHead::Alloc(yArray.count(), xArray.bytes()); in setRegion()
[all …]
/external/skqp/src/core/
DSkAAClip.cpp724 SkTDArray<uint8_t> xArray; in setRegion() local
727 xArray.setReserve(SkMin32(bounds.width(), 512) * 128); in setRegion()
743 append_run(xArray, 0, bounds.width() - prevRight); in setRegion()
750 currY->fOffset = xArray.count(); in setRegion()
751 append_run(xArray, 0, bounds.width()); in setRegion()
756 currY->fOffset = xArray.count(); in setRegion()
762 append_run(xArray, 0, x - prevRight); in setRegion()
765 append_run(xArray, 0xFF, w); in setRegion()
770 append_run(xArray, 0, bounds.width() - prevRight); in setRegion()
773 RunHead* head = RunHead::Alloc(yArray.count(), xArray.bytes()); in setRegion()
[all …]