Package common

Examples of common.PowerFragmentPenalty


    output += "Initial partition in array representation:\n"+Arrays.toString(initArrayPartition)+"\n";
    output += "Initial partition in list representation:\n"+dclong.util.Arrays.splitArray(initArrayPartition)+"\n";
    output += "burn-in="+warmupStep+", draws="+numberOfDraws+"\n";
    //define partition prior
//    FragmentPenalty fragmentPenalty = new PowerFragmentPenalty(0.5,3);//seems good
    FragmentPenalty fragmentPenalty = new PowerFragmentPenalty(power,powerCoefficient);
    //define partition prior
    FragmentPartitionPrior fragPrior = new FragmentPartitionPrior(fragmentPenalty);
    //define tuning distribution
    RandomGenerator rg = new Well44497b();
    RandomDataImpl rng = new RandomDataImpl(rg);
View Full Code Here


    String iapFile = "/home/adu/Dropbox/research/vardeman/mc-on-partition/data/jdata/tap.bin";
    double[][] locs = dclong.io.BinaryReader.readDouble(locsFile, 0,0,n, 2);
    double[] data = dclong.io.BinaryReader.readDouble(dataFile, 0, 0, n);
    int[] initArrayPartition = dclong.io.BinaryReader.readInt(iapFile,0,0,n);
    //define partition prior
    FragmentPenalty fragmentPenalty = new PowerFragmentPenalty(1,90);
    //define size penalty
    SizePenalty sizePenalty = new LinearSizePenalty(0);
    //define partition prior
//    PartitionPrior partitionPrior = new DistPartitionPrior(locs,3,fragmentPenalty,sizePenalty);
    PartitionPrior fragPrior = new FragmentPartitionPrior(fragmentPenalty);
View Full Code Here

    output += "Initial partition in array representation:\n"+Arrays.toString(initArrayPartition)+"\n";
    output += "Initial partition in list representation:\n"+dclong.util.Arrays.splitArray(initArrayPartition)+"\n";
    output += "burn-in="+warmupStep+", draws="+numberOfDraws+"\n";
    //define partition prior
//    FragmentPenalty fragmentPenalty = new PowerFragmentPenalty(0.5,3);//seems good
    FragmentPenalty fragmentPenalty = new PowerFragmentPenalty(power,powerCoefficient);
    //define partition prior
    FragmentPartitionPrior fragPrior = new FragmentPartitionPrior(fragmentPenalty);
    //define tuning distribution
    RandomGenerator rg = new Well44497b();
    RandomDataImpl rng = new RandomDataImpl(rg);
View Full Code Here

    output += "Initial partition in array representation:\n"+Arrays.toString(initArrayPartition)+"\n";
    output += "Initial partition in list representation:\n"+dclong.util.Arrays.splitArray(initArrayPartition)+"\n";
    output += "burn-in="+warmupStep+", draws="+numberOfDraws+"\n";
    //define partition prior
//    FragmentPenalty fragmentPenalty = new PowerFragmentPenalty(0.5,3);//seems good
    FragmentPenalty fragmentPenalty = new PowerFragmentPenalty(power,powerCoefficient);
    //define partition prior
    FragmentPartitionPrior fragPrior = new FragmentPartitionPrior(fragmentPenalty);
    //define tuning distribution
    RandomGenerator rg = new Well44497b();
    RandomDataImpl rng = new RandomDataImpl(rg);
View Full Code Here

TOP

Related Classes of common.PowerFragmentPenalty

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.