Examples of VennErrorFunction


Examples of bnGUI.venn.diagram.VennErrorFunction

           
            if( source.getFunction() instanceof VennErrorFunction )
            {
                // ATTENTION: source.getValue() updates the error function.
                // So getCost2() returns the correct result
                VennErrorFunction venn = (VennErrorFunction)source.getFunction();
                venn.setInput( source.getOptimum() );
                double[] E = venn.getCost2();
                for( int i=0; i<E.length; ++i )
                {
                    writer.write( "\t"+E[i] );
                }
            }
View Full Code Here

Examples of bnGUI.venn.diagram.VennErrorFunction

    optim = new IOptimizer[vennArrangement.length];
   
    for( int i=0; i<vennArrangement.length; ++i )
    {
        // the following might be replaced with a factory method
        errFunc[i] = new VennErrorFunction( new VennArrangement(vennArrangement[i]), params.errorFunction );
        switch( params.optimizer )
        {
            case EvolutionaryOptimizerV1.Parameters.ID:
                optim[i] = new EvolutionaryOptimizerV1(random,errFunc[i], params.optEvo );                   
                break;
View Full Code Here

Examples of bnGUI.venn.diagram.VennErrorFunction

    final IVennDiagramView[] views = getViews();
    if( views != null )
    {
      for( int i=0; i<views.length; ++i )
      {
        VennErrorFunction errf = new VennErrorFunction( views[i].getTree(), params.errorFunction );

        DecimalFormat format = new DecimalFormat("0.000");
        views[i].setInfoText("cost = "+format.format(-errf.getOutput()));
      }
    }

   }
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.