Package com.mockturtlesolutions.snifflib.datatypes

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


          }
          Double volAdded = nval;
          //Double volAdded = new Double(this.parent.getVolumeAdded(exp,ssid,obsnum));
         
          cv_total = cv_total.plus(conc.doubleValue()*volAdded.doubleValue());
          v_total = v_total.plus(volAdded.doubleValue());
         
         
         
          //System.out.println("conc"+conc);
          //System.out.println("volAdded"+volAdded);
View Full Code Here


            String param = "pKa_"+i+"_"+k;
            DblMatrix thisKaSum = null;
            if (this.hasParameter(param))
            {
               thisKaSum = this.getParam(param);
              thisKaSum = thisKaSum.plus(DblMatrix.log10(Ka[i].getDblAt(k)).times(-1.0));
              this.setParam(param,thisKaSum);
              int N = ((Integer)divisors.get(param)).intValue();
              divisors.put(param,new Integer(N+1));
            }
            else
View Full Code Here

           
            DblMatrix thisKbSum = null;
            if (this.hasParameter(param))
            {
              thisKbSum = this.getParam(param);
              thisKbSum = thisKbSum.plus(DblMatrix.log10(Kb[i].getDblAt(k)).times(-1.0));
              this.setParam(param,thisKbSum);
              int N = ((Integer)divisors.get(param)).intValue();
              divisors.put(param,new Integer(N+1));
            }
            else
View Full Code Here

         
          cpu2 = System.nanoTime();
          System.out.println("T3="+(cpu2-cpu));
          cpu = cpu2;
         
          current_volume = current_volume.plus(vi);
          //current_volume.show("current_volume");
          CumNum = CumNum.plus(ci.times(vi));
          Cummulant.setDblAt(CumNum.divideBy(current_volume),k);

          //Davies eqn etc.... is completely optional in this approach since
View Full Code Here

          {
            String partial =  (String)iter.next();
            if (!partial.equals("total")) //Don't accumulate the total in here.
            {
              System.out.println("partial="+partial);
              absoluteSumCb = absoluteSumCb.plus(DblMatrix.abs((DblMatrix)cb.get(partial)));
            }
          }
          cpu2 = System.nanoTime();
          System.out.println("T4="+(cpu2-cpu));
          cpu = cpu2;
View Full Code Here

          }
          Double volAdded = nval;
          //Double volAdded = new Double(this.parent.getVolumeAdded(exp,ssid,obsnum));
         
          cv_total = cv_total.plus(conc.doubleValue()*volAdded.doubleValue());
          v_total = v_total.plus(volAdded.doubleValue());
         
         
         
          //System.out.println("conc"+conc);
          //System.out.println("volAdded"+volAdded);
View Full Code Here

    if (this.contains(nickname))//The buffer being added is a simple buffer already in this buffer.
    {
      //System.out.println("Increasing already in there");
      DblMatrix current = this.getConcentration(nickname);
     
      current = current.plus(concentration);
      this.setConcentration(nickname,current);
    }
    else
    {
   
View Full Code Here

          {
            this.add(comp,testSol.getConcentration(comp));
          }
          else
          {
            current = current.plus(testSol.getConcentration(comp));
          }
        }
        else
        {
          this.add(comp,testSol.getConcentration(comp));
View Full Code Here

    if (this.contains(buffername))//The buffer being added is a simple buffer already in this buffer.
    {
      //System.out.println("Increasing already in there");
      DblMatrix current = this.getConcentration(buffername);
     
      current = current.plus(concentration);
      this.setConcentration(buffername,current);
    }
    else
    {
      BufferSolution testSol = new BufferSolution();
View Full Code Here

          {
            this.add(comp,testSol.getConcentration(comp));
          }
          else
          {
            current = current.plus(testSol.getConcentration(comp));
          }
        }
        else
        {
          this.add(comp,testSol.getConcentration(comp));
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.