public class SignalDopplerShiftData extends Object
Constructor and Description |
---|
SignalDopplerShiftData()
Initializes a new instance.
|
SignalDopplerShiftData(double dopplerShift)
Initializes a new instance with a given doppler shift frequency, in hertz.
|
Modifier and Type | Method and Description |
---|---|
SignalDopplerShiftData |
add(double dopplerShift)
Returns a copy of the signal doppler shift data with the supplied doppler shift value added to the history collection.
|
boolean |
equals(Object obj)
Indicates whether another object is exactly equal to this instance.
|
double |
get(int index)
Get the frequency doppler shift at the given index in the collection.
|
int |
getCount()
Gets the count of frequency doppler shift values.
|
double |
getTotalDopplerShift()
Gets the total doppler shift.
|
int |
hashCode()
Returns a hash code for this instance, which is suitable for use in hashing algorithms and data structures like a hash table.
|
public SignalDopplerShiftData()
public SignalDopplerShiftData(double dopplerShift)
dopplerShift
- The doppler shift value, in hertz.public final int getCount()
@Nonnull public final SignalDopplerShiftData add(double dopplerShift)
dopplerShift
- The frequency doppler shift, in hertz.SignalDopplerShiftData
.public final double get(int index)
index
- The index into the collection of frequency doppler shifts.public final double getTotalDopplerShift()
public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare to this instance.true
if obj
is an instance of this type and represents the same value as this instance; otherwise false
.Object.hashCode()
,
HashMap
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)