Lines Matching refs:xmin

16   PetscReal     xmin, xmax;  member
73 h->xmin = PETSC_MAX_REAL; in PetscDrawHGCreate()
135 hist->xmin = PETSC_MAX_REAL; in PetscDrawHGReset()
209 if (!hist->numValues && (hist->xmin == PETSC_MAX_REAL) && (hist->xmax == PETSC_MIN_REAL)) { in PetscDrawHGAddValue()
210 hist->xmin = value; in PetscDrawHGAddValue()
216 if (value < hist->xmin) hist->xmin = value; in PetscDrawHGAddValue()
220 …if (value > hist->xmax) hist->xmax = value + 0.001 * (value - hist->xmin) / (PetscReal)hist->numBi… in PetscDrawHGAddValue()
221 if (value < hist->xmin) { in PetscDrawHGAddValue()
222 hist->xmin = value; 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()
228 if (value < hist->xmin) hist->xmin = value; in PetscDrawHGAddValue()
277 if (!hist->numValues && (hist->xmin == PETSC_MAX_REAL) && (hist->xmax == PETSC_MIN_REAL)) { in PetscDrawHGAddWeightedValue()
278 hist->xmin = value; in PetscDrawHGAddWeightedValue()
283 if (value < hist->xmin) hist->xmin = 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()
328 xmin = hist->xmin; in PetscDrawHGDraw()
342 if (xmin == xmax) { in PetscDrawHGDraw()
347 if (values[p] == xmin) bins[0] += weights[0]; in PetscDrawHGDraw()
355 xmax = xmin + 1; in PetscDrawHGDraw()
356 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw()
376 binLeft = xmin; 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()
402 binLeft = xmin + binSize * i; in PetscDrawHGDraw()
403 binRight = xmin + binSize * (i + 1); in PetscDrawHGDraw()
419 PetscCall(PetscDrawAxisSetLimits(hist->axis, xmin, xmax, ymin, ymax)); in PetscDrawHGDraw()
440 binLeft = xmin + binSize * i; in PetscDrawHGDraw()
441 binRight = xmin + binSize * (i + 1); 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()
508 xmin = hist->xmin; in PetscDrawHGView()
514 if (xmax == xmin) { in PetscDrawHGView()
519 if (values[p] == xmin) bins[0] += weights[0]; in PetscDrawHGView()
526 …PetscCall(PetscViewerASCIIPrintf(viewer, "Bin %2d (%6.2g - %6.2g): %.0g\n", 0, (double)xmin, (doub… 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()
545 binLeft = xmin + binSize * i; in PetscDrawHGView()
546 binRight = xmin + binSize * (i + 1); in PetscDrawHGView()
561 binLeft = xmin + binSize * i; in PetscDrawHGView()
562 binRight = xmin + binSize * (i + 1); in PetscDrawHGView()
632 hist->xmin = x_min; in PetscDrawHGSetLimits()