INNER CODE UNIT · Dart

log10

roipeker/graphx · lib/src/math.dart:175

  static double log10(num value) {
    return math.log(value) * math.log10e;
  }

  /// Maps a value from one range to another.
  ///
  /// Given a [srcValue], [srcMin], [srcMax], [dstMin], and [dstMax], maps the
  /// [srcValue] from the [srcMin]-[srcMax] range to the [dstMin]-[dstMax]
  /// range.
  ///
  /// Example:
  /// ```dart
  /// final srcValue = 50;
  /// final srcMin = 0;
  /// final srcMax = 100;
  /// final dstMin = 0;
  /// final dstMax = 255;
  /// final mappedValue = Math.map(srcValue, srcMin, srcMax, dstMin, dstMax);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…