Linear class

Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i).Lower bound (1 <= i < N): offset + (width * (i - 1)).

Constructors

Linear({Input<int>? numFiniteBuckets, Input<double>? offset, Input<double>? width})
Creates a new Linear. numFiniteBuckets Must be greater than 0. offset Lower bound of the first bucket. width Must be greater than 0.
const
Linear.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
numFiniteBuckets → Input<int>?
Must be greater than 0.
final
offset → Input<double>?
Lower bound of the first bucket.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → Input<double>?
Must be greater than 0.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited