Examples of divideBy()


Examples of cc.mallet.grmm.types.LogTableFactor.divideBy()

    }

    for (Iterator it = edge.loopingMessages.iterator (); it.hasNext ();) {
      RegionEdge otherEdge = (RegionEdge) it.next ();
      Factor otherMsg = newMessages.getMessage (otherEdge.from, otherEdge.to);
      product.divideBy (otherMsg);
    }

    return product;
  }
}
View Full Code Here

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

        DblMatrix[] new_pKa = new DblMatrix[pKa1.length];
       
        for (int n=0;n<pKa1.length;n++)
        {
          DblMatrix temp = weight1.times(pKa1[n]).plus(weight2.times(pKa2[n]));
          new_pKa[n] = temp.divideBy(weight1.plus(weight2));
          //new_pKa[n].show("new_pKa["+n+"]");
        }

        DblMatrix[] pKb1 = out.getEstimatedpKb(comps[m]);
        DblMatrix[] pKb2 = cont_pred.getEstimatedpKb(comps[m]);
View Full Code Here

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

        DblMatrix[] new_pKb = new DblMatrix[pKb1.length];

        for (int n=0;n<pKb1.length;n++)
        {
          DblMatrix temp = weight1.times(pKb1[n]).plus(weight2.times(pKb2[n]));
          new_pKb[n] = temp.divideBy(weight1.plus(weight2));
        }


        out.setEstimatedpKa(comps[m],new_pKa);
        out.setEstimatedpKb(comps[m],new_pKb);
View Full Code Here

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

    //We store the emperical average for the purposes of evaluating the prior as well.
    for (int n=0;n<params.length;n++)
    {
      System.out.println("Setting initial for parameter:"+params[n]);
      DblMatrix pKaSum = (DblMatrix)OUT.get(params[n]);
      this.setParam(params[n],pKaSum.divideBy(((Integer)divisors.get(params[n])).intValue()));
      pKaSum.divideBy(((Integer)divisors.get(params[n])).intValue());
     
      // if (this.avgcoefficients == null)
//       {
//         System.out.println("AVG COEFF IS NULL");
View Full Code Here

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

    for (int n=0;n<params.length;n++)
    {
      System.out.println("Setting initial for parameter:"+params[n]);
      DblMatrix pKaSum = (DblMatrix)OUT.get(params[n]);
      this.setParam(params[n],pKaSum.divideBy(((Integer)divisors.get(params[n])).intValue()));
      pKaSum.divideBy(((Integer)divisors.get(params[n])).intValue());
     
      // if (this.avgcoefficients == null)
//       {
//         System.out.println("AVG COEFF IS NULL");
//       }
View Full Code Here

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

     
      //this.avgcoefficients.setParam(params[n],pKaSum.divideBy(((Integer)divisors.get(params[n])).intValue()));
     
     
      DblParamSet pparms = this.getPriorParams();
      pparms.setParam(params[n],pKaSum.divideBy(((Integer)divisors.get(params[n])).intValue()));
     
      pKaSum = ((DblMatrix)SUMSQ.get(params[n])).minus((pKaSum.pow(2.0)).divideBy(((Integer)divisors.get(params[n])).intValue()));
      //this.stdcoefficients.setParam(params[n],pKaSum);
      pparms.setParam(params[n]+"_sigma",DblMatrix.sqrt(pKaSum));//Set the standard deviation in the priorParameters.
     
View Full Code Here

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

          nickname = contents[m];
          occurances = (Integer)Navg.get(nickname);
          count = occurances.intValue();
          DblMatrix v = containedSOL.getConcentration(nickname);
          //val = (Double)((DblMatrix)contents.get(nickname)).getDoubleAt(0);
          containedSOL.setConcentration(nickname,v.divideBy(count));
          //contents.put(nickname,val.doubleValue()/count);
        }
      }
     
      //containedSOL is now a solution consisting of all stated components
View Full Code Here

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

       
        if (buffname.endsWith(".water"))
        {

          
          IonicStr = Kw.divideBy(H).plus(H);
           
        }
        else
        {
       
View Full Code Here

Examples of eu.stratosphere.compiler.costs.Costs.divideBy()

    } else {
      Costs result = cumulativeCosts.clone();
      if (this.template != null && this.template.getOutgoingConnections() != null) {
        int outDegree = this.template.getOutgoingConnections().size();
        if (outDegree > 0) {
          result.divideBy(outDegree);
        }
      }

      return result;
    }
View Full Code Here

Examples of fork.lib.bio.anno.genomic.LandscapeTransformer.divideBy()

    LandscapeBuilder lb= new BedGraphReader(outSub).getLandscapeBuilder();
    LandscapeTransformer lt= new LandscapeTransformer(lb);
    lt.selectLength(300, Integer.MAX_VALUE);
    double sum= lb.totalArea();
    double fac= sum/Math.pow(10, 8);
    lt.divideBy( fac );
    new BedGraphExporter(lb).writeToFile(outNorm);
}
   
public void subtract()throws Exception {
    subtractBackground(dis, f, outSub, 4);
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.