Lines Matching refs:xmax

16   PetscReal     xmin, xmax;  member
74 h->xmax = PETSC_MIN_REAL; in PetscDrawHGCreate()
136 hist->xmax = PETSC_MIN_REAL; in PetscDrawHGReset()
209 if (!hist->numValues && (hist->xmin == PETSC_MAX_REAL) && (hist->xmax == PETSC_MIN_REAL)) { in PetscDrawHGAddValue()
211 hist->xmax = value; in PetscDrawHGAddValue()
215 if (value > hist->xmax) hist->xmax = value; in PetscDrawHGAddValue()
220 …if (value > hist->xmax) hist->xmax = value + 0.001 * (value - hist->xmin) / (PetscReal)hist->numBi… in PetscDrawHGAddValue()
223 hist->xmax = hist->xmax + 0.001 * (hist->xmax - hist->xmin) / (PetscReal)hist->numBins; in PetscDrawHGAddValue()
227 …if (value > hist->xmax) hist->xmax = value + 0.001 * (hist->xmax - hist->xmin) / (PetscReal)hist->… in PetscDrawHGAddValue()
277 if (!hist->numValues && (hist->xmin == PETSC_MAX_REAL) && (hist->xmax == PETSC_MIN_REAL)) { in PetscDrawHGAddWeightedValue()
279 hist->xmax = value; in PetscDrawHGAddWeightedValue()
282 if (value > hist->xmax) hist->xmax = value; in PetscDrawHGAddWeightedValue()
308 …PetscReal xmin, xmax, ymin, ymax, *bins, *values, *weights, binSize, binLeft, binRight, maxHeigh… in PetscDrawHGDraw() local
321 if ((hist->xmin >= hist->xmax) || (hist->ymin >= hist->ymax)) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawHGDraw()
329 xmax = hist->xmax; in PetscDrawHGDraw()
342 if (xmin == xmax) { in PetscDrawHGDraw()
355 xmax = xmin + 1; in PetscDrawHGDraw()
356 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw()
377 binRight = xmax; in PetscDrawHGDraw()
387 if (hist->integerBins && (((int)xmax - xmin) + 1.0e-05 > xmax - xmin)) { in PetscDrawHGDraw()
388 initSize = ((int)(xmax - xmin)) / numBins; in PetscDrawHGDraw()
389 while (initSize * numBins != (int)xmax - xmin) { in PetscDrawHGDraw()
391 numBins = ((int)(xmax - xmin)) / initSize; in PetscDrawHGDraw()
395 binSize = (xmax - xmin) / (PetscReal)numBins; in PetscDrawHGDraw()
419 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw()
494 PetscReal xmax, xmin, *bins, *values, *weights, binSize, binLeft, binRight, mean, var, totwt = 0.; in PetscDrawHGView() local
502 if ((hist->xmin > hist->xmax) || (hist->ymin >= hist->ymax)) PetscFunctionReturn(PETSC_SUCCESS); in PetscDrawHGView()
507 xmax = hist->xmax; in PetscDrawHGView()
514 if (xmax == xmin) { in PetscDrawHGView()
526 …Printf(viewer, "Bin %2d (%6.2g - %6.2g): %.0g\n", 0, (double)xmin, (double)xmax, (double)bins[0])); in PetscDrawHGView()
530 if (hist->integerBins && (((int)xmax - xmin) + 1.0e-05 > xmax - xmin)) { in PetscDrawHGView()
531 initSize = (int)((int)xmax - xmin) / numBins; in PetscDrawHGView()
532 while (initSize * numBins != (int)xmax - xmin) { in PetscDrawHGView()
534 numBins = (int)((int)xmax - xmin) / initSize; in PetscDrawHGView()
539 binSize = (xmax - xmin) / numBins; in PetscDrawHGView()
633 hist->xmax = x_max; in PetscDrawHGSetLimits()