Lines Matching refs:numValues

21   int           numValues;  member
80 h->numValues = 0; in PetscDrawHGCreate()
139 hist->numValues = 0; in PetscDrawHGReset()
195 if (hist->numValues >= hist->maxValues) { in PetscDrawHGAddValue()
209 if (!hist->numValues && (hist->xmin == PETSC_MAX_REAL) && (hist->xmax == PETSC_MIN_REAL)) { in PetscDrawHGAddValue()
218 } else if (hist->numValues == 1) { in PetscDrawHGAddValue()
232 hist->values[hist->numValues] = value; in PetscDrawHGAddValue()
233 hist->weights[hist->numValues] = 1.; in PetscDrawHGAddValue()
234 ++hist->numValues; in PetscDrawHGAddValue()
263 if (hist->numValues >= hist->maxValues) { in PetscDrawHGAddWeightedValue()
277 if (!hist->numValues && (hist->xmin == PETSC_MAX_REAL) && (hist->xmax == PETSC_MIN_REAL)) { in PetscDrawHGAddWeightedValue()
286 hist->values[hist->numValues] = value; in PetscDrawHGAddWeightedValue()
287 hist->weights[hist->numValues] = weight; in PetscDrawHGAddWeightedValue()
288 ++hist->numValues; in PetscDrawHGAddWeightedValue()
311 PetscInt numValues, initSize, i, p; in PetscDrawHGDraw() local
322 if (hist->numValues < 1) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawHGDraw()
332 numValues = hist->numValues; in PetscDrawHGDraw()
346 for (p = 0; p < numValues; p++) { in PetscDrawHGDraw()
364 mean /= numValues; in PetscDrawHGDraw()
365 if (numValues > 1) var = (var - numValues * mean * mean) / (PetscReal)(numValues - 1); in PetscDrawHGDraw()
368 PetscCall(PetscSNPrintf(xlabel, 256, "Total: %" PetscInt_FMT, numValues)); in PetscDrawHGDraw()
404 for (p = 0; p < numValues; p++) { in PetscDrawHGDraw()
427 mean /= numValues; in PetscDrawHGDraw()
428 if (numValues > 1) var = (var - numValues * mean * mean) / (PetscReal)(numValues - 1); in PetscDrawHGDraw()
431 PetscCall(PetscSNPrintf(xlabel, 256, "Total: %" PetscInt_FMT, numValues)); in PetscDrawHGDraw()
495 PetscInt numBins, numBinsOld, numValues, initSize, i, p; in PetscDrawHGView() local
503 if (hist->numValues < 1) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawHGView()
509 numValues = hist->numValues; in PetscDrawHGView()
518 for (p = 0; p < numValues; p++) { in PetscDrawHGView()
547 for (p = 0; p < numValues; p++) { in PetscDrawHGView()
576 mean /= numValues; in PetscDrawHGView()
577 if (numValues > 1) var = (var - numValues * mean * mean) / (PetscReal)(numValues - 1); in PetscDrawHGView()
580 PetscCall(PetscViewerASCIIPrintf(viewer, "Total: %" PetscInt_FMT "\n", numValues)); in PetscDrawHGView()