Home | History | Annotate | Download | only in tools

Lines Matching refs:samples

14     Stats(const double samples[], int n) {
15 min = samples[0];
16 max = samples[0];
18 if (samples[i] < min) { min = samples[i]; }
19 if (samples[i] > max) { max = samples[i]; }
24 sum += samples[i];
30 err += (samples[i] - mean) * (samples[i] - mean);
35 memcpy(sorted.get(), samples, n * sizeof(double));
39 // Normalize samples to [min, max] in as many quanta as we have distinct bars to print.
42 // All samples are the same value. Don't divide by zero.
47 double s = samples[i];
62 SkString plot; // A single-line bar chart (_not_ histogram) of the samples.