60 references to Log
CodeGenerator (3)
HttpUtilities\HttpUtilities.cs (1)
34
var maskLength = (byte)Math.Ceiling(Math.
Log
(httpMethods.Length, 2));
HttpUtilities\HttpUtilitiesGeneratorHelpers.cs (2)
191
var maskSizeInBIts = Math.
Log
(mask, 2);
210
var 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)
231
var logMax = Math.
Log
(_args.Max, logBase);
232
var logMin = Math.
Log
(_args.Min, logBase);
314
return (float)((Math.
Log
(valueTyped.Value, logBase) - Math.
Log
(_args.Min, logBase)) / (Math.
Log
(_args.Max, logBase) - Math.
Log
(_args.Min, logBase)));
357
var logMax = Math.
Log
(_args.Max, logBase);
358
var logMin = Math.
Log
(_args.Min, logBase);
432
return (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)
42
return 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)
669
logloss = -Math.
Log
(prob, 2);
672
logloss = -Math.
Log
(1.0 - prob, 2);
1236
return -Math.
Log
(prob, 2);
1237
return -Math.
Log
(1.0 - prob, 2);
Microsoft.ML.Sweeper (12)
Parameters.cs (12)
239
var logMax = Math.
Log
(_options.Max, logBase);
240
var logMin = Math.
Log
(_options.Min, logBase);
322
return (float)((Math.
Log
(valueTyped.Value, logBase) - Math.
Log
(_options.Min, logBase)) / (Math.
Log
(_options.Max, logBase) - Math.
Log
(_options.Min, logBase)));
371
var logMax = Math.
Log
(_options.Max, logBase);
372
var logMin = Math.
Log
(_options.Min, logBase);
446
return (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)
186
FunctionProviderUtils.Fn<R8, R8, R8>(Math.
Log
));
527
return (R4)Math.
Log
(a, b);
MutualInformationFeatureSelection.cs (1)
714
score += _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)
104
double bounceAtT = Math.
Log
(-unitAtT * (1.0-bounciness) + 1.0, bounciness);
PresentationFramework (4)
System\Windows\Controls\Grid.cs (4)
1761
double power = Math.Floor(Math.
Log
(Double.MaxValue / maxStar / starCount, 2.0));
2340
double power = Math.Floor(Math.
Log
(Double.MaxValue / maxStar / starCount, 2.0));
2780
double minPower = Math.Floor(Math.
Log
(minRatio, 2.0));
2781
double 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)
77
int 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)
890
public static double Log(double x, double newBase) => Math.
Log
(x, newBase);
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
851
return Math.
Log
(value._sign, baseValue);
866
return Math.
Log
(x, baseValue) + (b - 64) / Math.
Log
(baseValue, 2);
System.Windows.Forms (3)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (3)
770
int numDigits = (int)Math.Floor(Math.
Log
(Math.Max(-(double)Minimum, (double)Maximum), baseSize));
774
maxDigits = (int)Math.Floor(Math.
Log
(long.MaxValue, baseSize));
778
maxDigits = (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));