Example #1
0
 public void printRn() {
   System.out.println("*********************************");
   System.out.println("*          SEQUENZA RN          *");
   System.out.println("*********************************");
   System.out.println();
   System.out.println("a: " + this.getA());
   System.out.println("seed: " + this.getSeed1());
   System.out.println("b: " + this.getB());
   System.out.println();
   List<Double> l = Utils.generaRn(this.getA(), this.getSeed1(), this.getB());
   printSequence(l);
   System.out.println();
 }
Example #2
0
 public void printExponential() {
   System.out.println("*******************************************************");
   System.out.println("*          SEQUENZA ESPONENZIALE DI MEDIA 20          *");
   System.out.println("*******************************************************");
   System.out.println();
   System.out.println("a: " + this.getA());
   System.out.println("seed: " + this.getSeed1());
   System.out.println("b: " + this.getB());
   System.out.println("avg: " + this.getAvg());
   System.out.println();
   List<Double> l =
       Utils.generaEsponenziale(this.getA(), this.getSeed1(), this.getB(), this.getAvg());
   printSequence(l);
   System.out.println();
 }
Example #3
0
 public void printRange() {
   System.out.println("********************************************************************");
   System.out.println("*          SEQUENZA UNIFORMEMENTE DISTRIBUITA IN (30, 50)          *");
   System.out.println("********************************************************************");
   System.out.println();
   System.out.println("a: " + this.getA());
   System.out.println("seed: " + this.getSeed1());
   System.out.println("b: " + this.getB());
   System.out.println("min: " + this.getMin());
   System.out.println("max: " + this.getMax());
   System.out.println();
   List<Double> l =
       Utils.generaIntervallo(
           this.getA(), this.getSeed1(), this.getB(), this.getMin(), this.getMax());
   printSequence(l);
   System.out.println();
 }
Example #4
0
 public void printHyperExponential() {
   System.out.println(
       "*******************************************************************************");
   System.out.println(
       "*          SEQUENZA IPERESPONENZIALE DI MEDIA 20 E PARAMETRO p = 0.38         *");
   System.out.println(
       "*******************************************************************************");
   System.out.println();
   System.out.println("a: " + this.getA());
   System.out.println("seed 1: " + this.getSeed1());
   System.out.println("seed 2: " + this.getSeed2());
   System.out.println("avg: " + this.getAvg());
   System.out.println("p: " + this.getP());
   System.out.println();
   List<Double> l =
       Utils.generaIpersponenziale(
           this.getA(), this.getSeed1(), this.getSeed2(), this.getB(), this.getAvg(), this.getP());
   printSequence(l);
   System.out.println();
 }
Example #5
0
 public List<Double> generaIperesponenziale() {
   return Utils.generaIpersponenziale(
       this.getA(), this.getSeed1(), this.getSeed2(), this.getB(), this.getAvg(), this.getP());
 }
Example #6
0
 public List<Double> generaIntervallo() {
   return Utils.generaIntervallo(
       this.getA(), this.getSeed1(), this.getB(), this.getMin(), this.getMax());
 }
Example #7
0
 public List<Double> generaRn() {
   return Utils.generaRn(this.getA(), this.getSeed1(), this.getB());
 }