mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
Refactoring to use COMPLEX and REAL sample terms throughout
This commit is contained in:
@@ -182,6 +182,21 @@ public class ComplexSample implements Serializable
|
||||
return mRight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the greater absolute value between left and right values
|
||||
*/
|
||||
public float maximumAbsolute()
|
||||
{
|
||||
if( Math.abs( mLeft ) > Math.abs( mRight ) )
|
||||
{
|
||||
return Math.abs( mLeft );
|
||||
}
|
||||
else
|
||||
{
|
||||
return Math.abs( mRight );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new complex sample representing the angle with unit circle
|
||||
* magnitude
|
||||
|
||||
Reference in New Issue
Block a user