Lines Matching refs:values
23 PetscReal *values; member
84 PetscCall(PetscMalloc2(h->maxValues, &h->values, h->maxValues, &h->weights)); in PetscDrawHGCreate()
166 PetscCall(PetscFree2((*hist)->values, (*hist)->weights)); in PetscDrawHGDestroy()
199 PetscCall(PetscArraycpy(tmp, hist->values, hist->maxValues)); in PetscDrawHGAddValue()
201 PetscCall(PetscFree2(hist->values, hist->weights)); in PetscDrawHGAddValue()
203 hist->values = tmp; in PetscDrawHGAddValue()
232 hist->values[hist->numValues] = value; in PetscDrawHGAddValue()
267 PetscCall(PetscArraycpy(tmp, hist->values, hist->maxValues)); in PetscDrawHGAddWeightedValue()
269 PetscCall(PetscFree2(hist->values, hist->weights)); in PetscDrawHGAddWeightedValue()
271 hist->values = tmp; in PetscDrawHGAddWeightedValue()
286 hist->values[hist->numValues] = value; in PetscDrawHGAddWeightedValue()
308 …PetscReal xmin, xmax, ymin, ymax, *bins, *values, *weights, binSize, binLeft, binRight, maxHeigh… in PetscDrawHGDraw() local
333 values = hist->values; in PetscDrawHGDraw()
347 if (values[p] == xmin) bins[0] += weights[0]; in PetscDrawHGDraw()
348 mean += values[p] * weights[p]; in PetscDrawHGDraw()
349 var += values[p] * values[p] * weights[p]; in PetscDrawHGDraw()
405 if ((values[p] >= binLeft) && (values[p] < binRight)) bins[i] += weights[p]; in PetscDrawHGDraw()
407 if ((i == numBins - 1) && (values[p] == binRight)) bins[i] += weights[p]; in PetscDrawHGDraw()
409 mean += values[p] * weights[p]; in PetscDrawHGDraw()
410 var += values[p] * values[p] * weights[p]; in PetscDrawHGDraw()
494 PetscReal xmax, xmin, *bins, *values, *weights, binSize, binLeft, binRight, mean, var, totwt = 0.; in PetscDrawHGView() local
510 values = hist->values; in PetscDrawHGView()
519 if (values[p] == xmin) bins[0] += weights[0]; in PetscDrawHGView()
520 mean += values[p] * weights[p]; in PetscDrawHGView()
521 var += values[p] * values[p] * weights[p]; in PetscDrawHGView()
548 if ((values[p] >= binLeft) && (values[p] < binRight)) bins[i] += weights[p]; in PetscDrawHGView()
550 if ((i == numBins - 1) && (values[p] == binRight)) bins[i] += weights[p]; in PetscDrawHGView()
552 mean += values[p] * weights[p]; in PetscDrawHGView()
553 var += values[p] * values[p] * weights[p]; in PetscDrawHGView()