Package stallone.api.datasequence

Examples of stallone.api.datasequence.IDataSequence


    }
   
    @Test
    public void compareWrittenWithPreviouslyRed() throws IOException {
        DcdReader reader = new DcdReader(output);
        IDataSequence outputSeq = reader.load();
        assertTrue("length of input and output", seq.size() == outputSeq.size());
       
        int size = seq.size();
        for(int i = 0; i < size; i++) {
            assertArrayEquals("trajectory with index " + i + " differs.",
                    seq.get(i).getArray(),
                    outputSeq.get(i).getArray(), 1E-6);
        }
    }
View Full Code Here


   
    @Before
    public void setUp() throws IOException {
        String files = "/home/marscher/md_simulation_data/trajall_500K.xtc";
        IDataReader loader = API.dataNew.reader(files);
        IDataSequence data = loader.load();
       
        IMetric metric = API.clusterNew.metric(0, 0);
       
        this.algo = API.clusterNew.kmeans(data, metric, 10, 100);
    }
View Full Code Here

TOP

Related Classes of stallone.api.datasequence.IDataSequence

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.