Package com.mockturtlesolutions.snifflib.datatypes

Examples of com.mockturtlesolutions.snifflib.datatypes.DblMatrix.times()


        if (DblMatrix.test(VALUE.eq(0.0)))
        {
          VALUE = new DblMatrix(0.000001);
        }
        else
        VALUE = VALUE.times(0.000001);
        }

        this.prop.setMixingParam(pname,VALUE);

      }
View Full Code Here


        if (DblMatrix.test(VALUE.eq(0.0)))
        {
          VALUE = new DblMatrix(0.000001);
        }
        else
        VALUE = VALUE.times(0.000001);
        }

        this.prop.setMixingParam(pname,VALUE);

      }
View Full Code Here

              Ka.show("Final Ka");
              for (int i=1;i<=N;i++)
              {
                temp = H.pow(i-1).times(cumProdKa.getDoubleAt(i-1));
                Denominator = Denominator.plus(temp);
                temp = temp.times(n+1-i);
                temp = temp.times(n+1-i);
                Numerator = Numerator.plus(temp);
              }
              //Denominator gets one more term than numerator...
              Denominator = Denominator.plus(H.pow(N))
View Full Code Here

              for (int i=1;i<=N;i++)
              {
                temp = H.pow(i-1).times(cumProdKa.getDoubleAt(i-1));
                Denominator = Denominator.plus(temp);
                temp = temp.times(n+1-i);
                temp = temp.times(n+1-i);
                Numerator = Numerator.plus(temp);
              }
              //Denominator gets one more term than numerator...
              Denominator = Denominator.plus(H.pow(N))
View Full Code Here

//       System.out.println("Increasing buffer:"+buffer);
//       //System.out.println("QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ");
//       newSol.increase(buffer,(concentration.times(facA)).getDoubleAt(0).doubleValue());
//       //newSol.increase(storage,(concentration.getDoubleAt(0).doubleValue())*facA);
      concentration = A.getConcentration(buffer);
      newSol.setConcentration(buffer,concentration.times(facA));
   
    }
   
    cpu2 = System.nanoTime();
    //System.out.println("M2="+(cpu2-cpu));
View Full Code Here

      //buffer = (String)iter.next();
      //concentration = (DblMatrix)contents.get(buffer);
      concentration = B.getConcentration(buffer);
      //BufferStorage storage = B.getBufferStorage(buffer);
      //System.out.println("QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ");
      newSol.increase(buffer,(concentration.times(facB).getDoubleAt(0).doubleValue()));
    }
    cpu2 = System.nanoTime();
    //System.out.println("M3="+(cpu2-cpu));
    cpu = cpu2;
    //System.out.println("QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ");
View Full Code Here

        //comp = (String)iter2.next();
        comp = contents[i];
        //conc = (DblMatrix)contents.get(comp);
        conc = sol.getConcentration(comp);
       
        incrconc = (conc.times(factor)).divideBy(sumOfFactors);
        newSol.increase(comp,incrconc.getDoubleAt(0).doubleValue());
      }
    }
   
    return(newSol);
View Full Code Here

      {
        //comp = (String)iter2.next();
        comp = contents[i];
        //conc = (DblMatrix)contents.get(comp);
        conc = sol.getConcentration(comp);
        incrconc = (conc.times(factor)).divideBy(sumOfFactors);
        newSol.increase(comp,incrconc.getDoubleAt(0).doubleValue());
      }
    }
   
    return(newSol);
View Full Code Here

              //Ka.show("Final Ka");
              for (int m=1;m<=N;m++)
              {
                temp = H.pow(m-1).times(cumProdKa.getDoubleAt(m-1));
                Denominator = Denominator.plus(temp);
                temp = temp.times(n+1-m);
                Numerator = Numerator.plus(temp);
              }
              //Denominator gets one more term than numerator...
              Denominator = Denominator.plus(H.pow(N))
View Full Code Here

              Ka.show("Final Ka");
              for (int i=1;i<=N;i++)
              {
                temp = H.pow(i-1).times(cumProdKa.getDoubleAt(i-1));
                B = B.plus(temp);
                temp = temp.times(n+1-i);
                A = A.plus(temp);
                System.out.println("Yes we do this for"+buffname);
                if (i>1)
                {
                  System.out.println("And yes we do this too for"+buffname);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.