60 references to Log
CodeGenerator (3)
HttpUtilities\HttpUtilities.cs (1)
34var maskLength = (byte)Math.Ceiling(Math.Log(httpMethods.Length, 2));
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (2)
191var maskSizeInBIts = Math.Log(mask, 2); 210var maskSizeInBIts = Math.Log(mask, 2);
Metrics (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
437=> Length * Math.Max(0.0, Math.Log(Vocabulary, 2));
Metrics.Legacy (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
437=> Length * Math.Max(0.0, Math.Log(Vocabulary, 2));
Microsoft.CodeAnalysis.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
437=> Length * Math.Max(0.0, Math.Log(Vocabulary, 2));
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
437=> Length * Math.Max(0.0, Math.Log(Vocabulary, 2));
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
437=> Length * Math.Max(0.0, Math.Log(Vocabulary, 2));
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
437=> Length * Math.Max(0.0, Math.Log(Vocabulary, 2));
Microsoft.ML.AutoML (12)
Sweepers\Parameters.cs (12)
231var logMax = Math.Log(_args.Max, logBase); 232var logMin = Math.Log(_args.Min, logBase); 314return (float)((Math.Log(valueTyped.Value, logBase) - Math.Log(_args.Min, logBase)) / (Math.Log(_args.Max, logBase) - Math.Log(_args.Min, logBase))); 357var logMax = Math.Log(_args.Max, logBase); 358var logMin = Math.Log(_args.Min, logBase); 432return (float)((Math.Log(valueTyped.Value, logBase) - Math.Log(_args.Min, logBase)) / (Math.Log(_args.Max, logBase) - Math.Log(_args.Min, logBase)));
Microsoft.ML.Core (5)
Utilities\MathUtils.cs (5)
42return Math.Log(a, newBase).ToFloat(); 773: -prob * Math.Log(prob, 2) - (1 - prob) * Math.Log(1 - prob, 2); 788: -probTrue * Math.Log(probPredicted, 2) - (1 - probTrue) * Math.Log(1 - probPredicted, 2);
Microsoft.ML.Data (4)
Evaluators\BinaryClassifierEvaluator.cs (4)
669logloss = -Math.Log(prob, 2); 672logloss = -Math.Log(1.0 - prob, 2); 1236return -Math.Log(prob, 2); 1237return -Math.Log(1.0 - prob, 2);
Microsoft.ML.Sweeper (12)
Parameters.cs (12)
239var logMax = Math.Log(_options.Max, logBase); 240var logMin = Math.Log(_options.Min, logBase); 322return (float)((Math.Log(valueTyped.Value, logBase) - Math.Log(_options.Min, logBase)) / (Math.Log(_options.Max, logBase) - Math.Log(_options.Min, logBase))); 371var logMax = Math.Log(_options.Max, logBase); 372var logMin = Math.Log(_options.Min, logBase); 446return (float)((Math.Log(valueTyped.Value, logBase) - Math.Log(_options.Min, logBase)) / (Math.Log(_options.Max, logBase) - Math.Log(_options.Min, logBase)));
Microsoft.ML.Transforms (3)
Expression\BuiltinFunctions.cs (2)
186FunctionProviderUtils.Fn<R8, R8, R8>(Math.Log)); 527return (R4)Math.Log(a, b);
MutualInformationFeatureSelection.cs (1)
714score += _contingencyTable[i][j] / (double)_labels.Length * Math.Log(_contingencyTable[i][j] * (double)_labels.Length / ((double)_labelSums[i] * _featureSums[j]), 2);
PresentationCore (1)
System\Windows\Media\Animation\BounceEase.cs (1)
104double bounceAtT = Math.Log(-unitAtT * (1.0-bounciness) + 1.0, bounciness);
PresentationFramework (4)
System\Windows\Controls\Grid.cs (4)
1761double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 2340double power = Math.Floor(Math.Log(Double.MaxValue / maxStar / starCount, 2.0)); 2780double minPower = Math.Floor(Math.Log(minRatio, 2.0)); 2781double maxPower = Math.Floor(Math.Log(maxRatio, 2.0));
Roslyn.Diagnostics.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
437=> Length * Math.Max(0.0, Math.Log(Vocabulary, 2));
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Metrics\ExponentialHistogramAggregator.cs (1)
77int mantissaBits = (int)Math.Ceiling(Math.Log(1 / _config.MaxRelativeError, 2)) - 1;
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
890public static double Log(double x, double newBase) => Math.Log(x, newBase);
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
851return Math.Log(value._sign, baseValue); 866return Math.Log(x, baseValue) + (b - 64) / Math.Log(baseValue, 2);
System.Windows.Forms (3)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (3)
770int numDigits = (int)Math.Floor(Math.Log(Math.Max(-(double)Minimum, (double)Maximum), baseSize)); 774maxDigits = (int)Math.Floor(Math.Log(long.MaxValue, baseSize)); 778maxDigits = (int)Math.Floor(Math.Log((double)decimal.MaxValue, baseSize));
Text.Analyzers (1)
src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\ComputationalComplexityMetrics.cs (1)
437=> Length * Math.Max(0.0, Math.Log(Vocabulary, 2));