Package stallone.api.datasequence

Examples of stallone.api.datasequence.IDataReader


    public static IDataReader createReader(String file)
            throws IOException
    {
                String internalFormat = getInputFileFormat(file);
                IDataReader reader = null;

                if (internalFormat.equals("xtc"))
                {
                    reader = new XtcReader(file);
                }
View Full Code Here


     * @throws IOException
     */
    public void transform_file(String infile, ICoordinateTransform T, String outfile)
            throws IOException
    {
        IDataReader reader = dataNew.reader(infile);
        int N = reader.size();
        IDataWriter writer = dataNew.writer(outfile, N, T.dimension());
        if (writer instanceof AsciiDataSequenceWriter && fixedOutputPrecision)
            ((AsciiDataSequenceWriter)writer).setFixedPrecision(outputPrecisionPre, outputPrecisionPost);
        for (IDoubleArray X : reader)
            writer.add(T.transform(X));
View Full Code Here

    IClustering algo;
   
    @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.IDataReader

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.