62 references to Max
Microsoft.Data.Analysis (4)
PrimitiveDataFrameColumnComputations.cs (4)
2234ret = (float)(Math.Max(readOnlySpan[i], ret)); 2278ret = (float)Math.Max(span[(int)row], ret); 2490value = (float)(Math.Max(readOnlySpan[i], value)); 2517value = (float)(Math.Max(readOnlySpan[(int)row], value));
Microsoft.Maui (2)
Layouts\Flex.cs (2)
962 width = Math.Max(0, width - item.PaddingLeft + item.PaddingRight); 963 height = Math.Max(0, height - item.PaddingTop + item.PaddingBottom);
Microsoft.Maui.Graphics (11)
ArcFlattener.cs (1)
31 _diameter = Math.Max(width, height);
Color.cs (4)
200 float v = Math.Max(Red, Green); 201 v = Math.Max(v, Blue); 526 float v = Math.Max(r, g); 527 v = Math.Max(v, b);
PathF.cs (2)
1150 float maxX = Math.Max(rect.X, rect.X + rect.Width); 1151 float maxY = Math.Max(rect.Y, rect.Y + rect.Height);
RectF.cs (4)
108 return FromLTRB(Math.Min(r1.Left, r2.Left), Math.Min(r1.Top, r2.Top), Math.Max(r1.Right, r2.Right), Math.Max(r1.Bottom, r2.Bottom)); 118 float x = Math.Max(r1.X, r2.X); 119 float y = Math.Max(r1.Y, r2.Y);
Microsoft.Maui.Graphics.Skia (3)
SkiaCanvas.cs (3)
291 float radius = (float)radialGradientPaint.Radius * Math.Max(rectangle.Height, rectangle.Width); 825 var rx2 = Math.Max(x, x + width); 826 var ry2 = Math.Max(y, y + height);
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (1)
486 float radius = (float)radialGradientPaint.Radius * Math.Max(rectangle.Height, rectangle.Width);
Microsoft.ML.Core (3)
Utilities\MathUtils.cs (3)
115result = Math.Max(result, x); 291float maxAbs = Math.Max(Math.Abs(a), Math.Abs(b)); 688maxOut = Math.Max(maxOut, src[i]);
Microsoft.ML.Core.Tests (1)
UnitTests\TestLoss.cs (1)
49float almostOutput = Math.Max((float)output * (1 + _epsilon), (float)output + _epsilon);
Microsoft.ML.Data (6)
Evaluators\MulticlassClassificationEvaluator.cs (2)
474float p = Math.Min(1, Math.Max(Epsilon, _scoresArr[intLabel])); 796float p = Math.Min(1, Math.Max(Epsilon, scoresArr[intLabel]));
Transforms\NormalizeColumnSng.cs (1)
1599scale = 1 / Math.Max(Math.Abs(max), Math.Abs(min));
Utils\LossFunctions.cs (3)
147return 1 / Math.Max(1, (float)0.25 + scaledFeaturesNormSquared); 261var fullUpdate = truth * Math.Max(0, Math.Min(1, tmp)) - alpha; 385var fullUpdate = truth * Math.Max(0, Math.Min(1, tmp)) - alpha;
Microsoft.ML.Ensemble (1)
Trainer\EnsembleTrainerBase.cs (1)
134validationDataSetProportion = Math.Max(validationDataSetProportion, stackingTrainer.ValidationDatasetProportion);
Microsoft.ML.LightGbm (1)
LightGbmMulticlassTrainer.cs (1)
286maxLabel = Math.Max(maxLabel, labelColumn);
Microsoft.ML.Mkl.Components (1)
VectorWhitening.cs (1)
416eigValues[i] = MathUtils.Sqrt(Math.Max(0, eigValues[i]) + ex.Epsilon);
Microsoft.ML.StandardTrainers (6)
Optimizer\DifferentiableFunction.cs (1)
233maxNormDiff = Math.Max(maxNormDiff, normDiff);
Optimizer\OptimizationMonitor.cs (1)
326_bestBoundOnMin = Math.Max(_bestBoundOnMin, newBoundOnMin);
Optimizer\SgdOptimizer.cs (1)
345float beta = Math.Max(0, betaPR);
Standard\LogisticRegression\LogisticRegression.cs (1)
200float label01 = Math.Min(1, Math.Max(label, 0));
Standard\Online\OnlineLinear.cs (1)
298float maxNorm = Math.Max(VectorUtils.MaxNorm(in state.Weights), Math.Abs(state.Bias));
Standard\SdcaBinary.cs (1)
709float l2 = Math.Max(1e-06f, 20f / (expectedIterations * rowCount));
Microsoft.ML.TimeSeries (1)
SrCnnAnomalyDetectionBase.cs (1)
234score = Math.Max(score, 0);
Microsoft.ML.Tokenizers (1)
Model\SentencePieceUnigramModel.cs (1)
54_maxScore = Math.Max(_maxScore, score);
Microsoft.ML.TorchSharp (2)
AutoFormerV2\ObjectDetectionMetrics.cs (2)
162float xleft = Math.Max(bbox.Left, gt.Left); 163float yleft = Math.Max(bbox.Top, gt.Top);
Microsoft.ML.Transforms (1)
Expression\BuiltinFunctions.cs (1)
289FunctionProviderUtils.Fn<R4, R4, R4>(Math.Max),
PresentationFramework.Classic (3)
Microsoft\Windows\Themes\ClassicBorderDecorator.cs (3)
236float max = Math.Max(rgbColor.Red, Math.Max(rgbColor.Green, rgbColor.Blue)); 268saturation = Math.Max(0.0f, Math.Min(saturation, 1.0f));
System.Data.Common (1)
System\Data\Common\SingleStorage.cs (1)
125max = Math.Max(_values[record], max);
System.Drawing.Primitives (4)
System\Drawing\RectangleF.cs (4)
273float x1 = Math.Max(a.X, b.X); 275float y1 = Math.Max(a.Y, b.Y); 298float x2 = Math.Max(a.X + a.Width, b.X + b.Width); 300float y2 = Math.Max(a.Y + a.Height, b.Y + b.Height);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\MathF.cs (1)
248return Math.Max(x, y);
System.Windows.Forms (4)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
662dataGridViewColumnTmp.UsedFillWeight = Math.Max( 830dataGridViewColumnTmp.UsedFillWeight = Math.Max(dataGridViewColumnTmp.FillWeight * usedWeightSumNoneMinimal / weightSumNoneMinimal,
System\Windows\Forms\Layout\TableLayout.cs (2)
168containerInfo.ColumnStyles[0].SetSize(Math.Max(oldWidth, Math.Min(proposedConstraints.Width, containerSize.Width))); 1077totalPercentAllocatedSpace = Math.Max(0, maxSize - totalAbsoluteAndAutoSizeAllocatedSpace);
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\Behavior\TableLayoutPanelBehavior.cs (3)
293newRightSize = Math.Max(rightStyleSize - delta, DesignerUtils.s_minimumSizeDrag); 301newLeftSize = Math.Max(leftStyleSize + delta, DesignerUtils.s_minimumSizeDrag); 344newAbsSize = Math.Max(absIndex == rightIndex ? curAbsStyleSize - delta : curAbsStyleSize + delta,
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
551itemWidth = (int)Math.Max(itemWidth, _newItemTypes.ItemHeight + 1