InformationRate constructor

InformationRate({
  1. dynamic bps,
  2. dynamic kbps,
  3. dynamic Mbps,
  4. dynamic Gbps,
  5. dynamic Tbps,
  6. double uncert = 0.0,
})

Construct an InformationRate with bits per second (bps), kilobits per second (kbps), megabits per second (Mbps), gigabits per second (Gbps) or terabits per second (Tbps). Optionally specify a relative standard uncertainty.

Implementation

InformationRate(
    {dynamic bps,
    dynamic kbps,
    dynamic Mbps,
    dynamic Gbps,
    dynamic Tbps,
    double uncert = 0.0})
    : super(
          bps ?? (kbps ?? (Mbps ?? (Gbps ?? (Tbps ?? 0.0)))),
          kbps != null
              ? InformationRate.kilobitsPerSecond
              : (Mbps != null
                  ? InformationRate.megabitsPerSecond
                  : (Gbps != null
                      ? InformationRate.gigabitsPerSecond
                      : (Tbps != null
                          ? InformationRate.terabitsPerSecond
                          : InformationRate.bitsPerSecond))),
          uncert);