Advertisement
Guest User

Untitled

a guest
May 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.46 KB | None | 0 0
  1. return (Math.Max(Math.Min(pos_small, zerodis),Math.Min(pos_small, close)) * neg_medium_pow +
  2.           Math.Max(Math.Min(zero, zerodis),  Math.Min(zero, close)) * zero_pow +
  3.           Math.Max(Math.Max(Math.Min(neg_small, close), Math.Min(neg_big, medium)),Math.Min(zero, far)) * pos_medium_pow +
  4.           Math.Max(Math.Min(neg_small, medium), Math.Min(neg_small, far)) * pos_high_pow);
  5.  
  6.  
  7. return(Math.Max(Math.Max(Math.Min(neg_small, medium), Math.Min(neg_small, far)) * pos_high_pow, Math.Max(Math.Max(Math.Min(neg_small, close), Math.Min(neg_big, medium)),Math.Min(zero, far)) * pos_medium_pow)
  8.        +(Math.Min(Math.Max(Math.Min(pos_small, zerodis),Math.Min(pos_small, close)) * neg_medium_pow ,
  9.           Math.Max(Math.Min(zero, zerodis),  Math.Min(zero, close)) * zero_pow)) /2);
  10.  
  11. return (Math.Max(Math.Min(pos_small, zerodis),Math.Min(pos_small, close)) * neg_medium_pow +
  12.           Math.Max(Math.Min(zero, zerodis),  Math.Min(zero, close)) * zero_pow +
  13.           Math.Max(Math.Max(Math.Min(neg_small, close), Math.Min(neg_big, medium)),Math.Min(neg_small, close)) * pos_medium_pow +
  14.           Math.Max(Math.Min(neg_small, medium), Math.Min(neg_small, far)) * pos_high_pow)
  15.         /(Math.Min(pos_small, zerodis)+Math.Min(pos_small, close)+Math.Min(zero, zerodis)+
  16.         Math.Min(zero, close)+Math.Min(neg_small, close)+ Math.Min(neg_big, medium)+Math.Min(neg_small, close)+
  17.         Math.Min(neg_big, medium)+Math.Min(neg_small, medium)+ Math.Min(neg_small, far));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement