Advertisement
Guest User

Signals

a guest
May 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.18 KB | None | 0 0
  1.  
  2. public class Signals {
  3.  
  4.     double offsetValue=0, amplitude=0;
  5.     double y=0;
  6.    
  7.     double getY(int x)
  8.     {  
  9.     y = (amplitude*x) + (offsetValue*Math.cos(x));
  10.     return y;          
  11.     }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement