Package stallone.util

Examples of stallone.util.CommandLineParser.addCommand()


        CommandLineParser parser = new CommandLineParser();

        // input
        parser.addStringArrayCommand("i", true);

        parser.addCommand("columns", true);
        parser.addIntArgument("columns", true);
        parser.addIntArgument("columns", true);
        parser.addIntArgument("columns", true);

        parser.addIntCommand("maxtime", true);
View Full Code Here


        parser.addIntCommand("samplingtime", true);

        parser.addDoubleCommand("windowfraction", true);

        parser.addCommand("subtractmean", true);

        // parse
        if (!parser.parse(args))
        {
            throw (new IllegalArgumentException("Parsing error!"));
View Full Code Here

        CommandLineParser parser = new CommandLineParser();

        // input
        parser.addStringArrayCommand("i", true);

        parser.addCommand("columns", true);
        parser.addIntArgument("columns", true);
        parser.addIntArgument("columns", true);
        parser.addIntArgument("columns", true);

        parser.addIntCommand("maxtime", true);
View Full Code Here

        parser.addIntArgument("columns", true);
        parser.addIntArgument("columns", true);

        parser.addIntCommand("maxtime", true);

        parser.addCommand("subtractmean", true);

        // parse
        if (!parser.parse(args))
        {
            throw (new IllegalArgumentException("Parsing error!"));
View Full Code Here

        CommandLineParser parser = new CommandLineParser();

        // input
        parser.addStringArrayCommand("i", true);

        parser.addCommand("columns", true);
        parser.addIntArgument("columns", true);
        parser.addIntArgument("columns", true);
        parser.addIntArgument("columns", true);

        parser.addIntCommand("maxtime", true);
View Full Code Here

        // input
        parser.addStringArrayCommand("i", true);
        // mandatory parameters
        parser.addIntCommand("nhidden", true);
        // optional initialization
        parser.addCommand("init", false);
        parser.addStringArgument("init", true); // T
        parser.addStringArgument("init", true); // Chi
        // option estimate
        parser.addCommand("estimate", false);
        parser.addIntArgument("estimate", true); // tau
View Full Code Here

        // optional initialization
        parser.addCommand("init", false);
        parser.addStringArgument("init", true); // T
        parser.addStringArgument("init", true); // Chi
        // option estimate
        parser.addCommand("estimate", false);
        parser.addIntArgument("estimate", true); // tau
        parser.addIntArgument("estimate", true); // average window
        // option hmm timescales
        parser.addCommand("hmmtimescales", false);
        parser.addIntArgument("hmmtimescales", true); // tau-min
View Full Code Here

        // option estimate
        parser.addCommand("estimate", false);
        parser.addIntArgument("estimate", true); // tau
        parser.addIntArgument("estimate", true); // average window
        // option hmm timescales
        parser.addCommand("hmmtimescales", false);
        parser.addIntArgument("hmmtimescales", true); // tau-min
        parser.addIntArgument("hmmtimescales", true); // tau-max
        parser.addDoubleArgument("hmmtimescales", true); // tau-mult
        parser.addIntArgument("hmmtimescales", true); // max-avg-window
        // hmm convergence options
View Full Code Here

        parser.addIntArgument("hmmtimescales", true); // tau-min
        parser.addIntArgument("hmmtimescales", true); // tau-max
        parser.addDoubleArgument("hmmtimescales", true); // tau-mult
        parser.addIntArgument("hmmtimescales", true); // max-avg-window
        // hmm convergence options
        parser.addCommand("hmmconv",false);
        parser.addDoubleArgument("hmmconv", true, -0.1, Double.NEGATIVE_INFINITY,Double.POSITIVE_INFINITY); // dectol
        parser.addIntArgument("hmmconv", true, 1000, 0, Integer.MAX_VALUE); // niter
        // option
        parser.addCommand("direct", false);
        // output
View Full Code Here

        // hmm convergence options
        parser.addCommand("hmmconv",false);
        parser.addDoubleArgument("hmmconv", true, -0.1, Double.NEGATIVE_INFINITY,Double.POSITIVE_INFINITY); // dectol
        parser.addIntArgument("hmmconv", true, 1000, 0, Integer.MAX_VALUE); // niter
        // option
        parser.addCommand("direct", false);
        // output
        parser.addStringCommand("o", true);

        if (!parser.parse(args))
        {
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.