Examples of valueOf()


Examples of com.cisco.oss.foundation.logging.structured.FoundationLoggingMarker.valueOf()

     
      marker.getName();
     
      if(marker instanceof FoundationLoggingMarker){
        FoundationLoggingMarker foundationLoggingMarker = (FoundationLoggingMarker)marker;
        String userFieldValue = foundationLoggingMarker.valueOf(key);
        if(FoundationLoggingMarker.NO_OPERATION.equals(userFieldValue)){
          toAppendTo.append("");
        }else{
          toAppendTo.append(userFieldValue)
        }
View Full Code Here

Examples of com.github.dactiv.common.FieldType.valueOf()

    String restrictionsName = StringUtils.substring(restrictionsNameAndClassType, 0,restrictionsNameAndClassType.length() - 1);
    String classType = StringUtils.substring(restrictionsNameAndClassType, restrictionsNameAndClassType.length() - 1, restrictionsNameAndClassType.length());
   
    FieldType FieldType = null;
    try {
      FieldType = FieldType.valueOf(classType);
    } catch (Exception e) {
      throw new IllegalAccessError("[" + expression + "]表达式找不到相应的属性类型,获取的值为:" + classType);
    }
   
    String[] propertyNames = null;
View Full Code Here

Examples of com.ibatis.sqlmap.engine.type.TypeHandler.valueOf()

        String nullValue = mapping.getNullValue();
        if (result == null && nullValue != null) {
          TypeHandler typeHandler = typeHandlerFactory.getTypeHandler(targetType);
          if (typeHandler != null) {
            result = typeHandler.valueOf(nullValue);
          }
        }
      }
      return result;
    } catch (InstantiationException e) {
View Full Code Here

Examples of com.intellij.util.ui.ColumnInfo.valueOf()

    final ColumnInfo columnInfo = myTableModel.getColumnInfos()[i];
    final java.util.List items = myTableModel.getItems();
    int width = -1;
    for (int j = 0; j < items.size(); j++) {
      final TableCellRenderer renderer = myTable.getCellRenderer(j, i);
      final Component component = renderer.getTableCellRendererComponent(myTable, columnInfo.valueOf(items.get(j)), false, false, j, i);
      width = Math.max(width, component.getPreferredSize().width);
    }
    return width;
  }
View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.DoublePegasosSVM.valueOf()

      int nbErr = 0;
      int tpegErr = 0;
      for(TrainingSample<double[]> t : test)
      {
        int y = t.label;
        double value = peg.valueOf(t.sample);
        if(y*value < 0)
          nbErr++;
        double pegVal = tpeg.valueOf(t.sample);
        if(y*pegVal < 0)
        {
View Full Code Here

Examples of fr.lip6.jkernelmachines.classifier.transductive.S3VMLightPegasos.valueOf()

      {
        int y = t.label;
        double value = peg.valueOf(t.sample);
        if(y*value < 0)
          nbErr++;
        double pegVal = tpeg.valueOf(t.sample);
        if(y*pegVal < 0)
        {
          tpegErr++;
//          System.out.println("y : "+y+" value : "+value+" nbErr : "+nbErr+" pegVal : "+pegVal+" pegErr : "+tpegErr);
        }
View Full Code Here

Examples of fr.lip6.jkernelmachines.density.DoubleGaussianMixtureModel.valueOf()

    // 6. test svm
    for (double[] t : test) {
      double value = svm.valueOf(t);
      double pvalue = parzen.valueOf(t);
      double dvalue = sdca.valueOf(t);
      double gvalue = gmm.valueOf(t);
      double mvalue = mkl.valueOf(t);

      System.out.println("smo: " + value + ", parzen: "
          + pvalue + ", sdca: " + dvalue + " , gmm: "
          + gvalue + " , mkl: " + mvalue);
View Full Code Here

Examples of fr.lip6.jkernelmachines.density.DoubleGaussianMixtureModel.valueOf()

  public final void testTrainListOfdouble() {
    DoubleGaussianMixtureModel gmm = new DoubleGaussianMixtureModel(2);
    gmm.train(train);
   
    for(double[] x : train) {
      assertTrue(gmm.valueOf(x) > 0);
      assertTrue(gmm.valueOf(x) <= 1);
    }
  }

}
View Full Code Here

Examples of fr.lip6.jkernelmachines.density.DoubleGaussianMixtureModel.valueOf()

    DoubleGaussianMixtureModel gmm = new DoubleGaussianMixtureModel(2);
    gmm.train(train);
   
    for(double[] x : train) {
      assertTrue(gmm.valueOf(x) > 0);
      assertTrue(gmm.valueOf(x) <= 1);
    }
  }

}
View Full Code Here

Examples of fr.lip6.jkernelmachines.kernel.extra.CustomTrainTestMatrixKernel.valueOf()

    CustomTrainTestMatrixKernel kernel = new CustomTrainTestMatrixKernel(train, test);
   
    // assert values from train to end of test
    for(int i = 0 ; i < 5 ; i++) {
      for(int j = 0 ; j < 15 ; j++) {
        assertEquals(matrix[i][j], kernel.valueOf(i, j), 1e-15);
        assertEquals(matrix[j][i], kernel.valueOf(j, i), 1e-15);
      }
    }
   
  }
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.