Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. public class Quantile()
  2. {
  3.     private float a= g.getAlfa();
  4.     private q_a= new float[3];
  5.    
  6.     public void Quantile()
  7.     {
  8.         alfa=a;
  9.         q_alfa=q_a;
  10.         q_alfa[0]=2.576;
  11.         q_alfa[1]=1.960;
  12.         q_alfa[2]=1.645;
  13.     }
  14.     public float calcoloQuantile(float a)
  15.     {
  16.         float alfa= a;
  17.         if(a==0.01)
  18.             return q_alfa[0];
  19.         else if(a==0.05)
  20.             return q_alfa[1];
  21.         else return q_alfa[2];
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement