Package bnGUI.venn.diagram

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


    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

    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

Related Classes of bnGUI.venn.diagram.VennErrorFunction

Copyright © 2018 www.massapicom. 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.