edu.pitt.dbmi.data.reader.tabular.ContinuousTabularData Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2018 University of Pittsburgh.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*/
package edu.pitt.dbmi.data.reader.tabular;
import edu.pitt.dbmi.data.reader.ContinuousData;
import edu.pitt.dbmi.data.reader.DataColumn;
/**
* Dec 29, 2018 5:18:32 PM
*
* @author Kevin V. Bui ([email protected])
* @version $Id: $Id
*/
public class ContinuousTabularData implements ContinuousData {
private final DataColumn[] dataColumns;
private final double[][] data;
/**
* Constructor.
*
* @param dataColumns The data columns.
* @param data The data.
*/
public ContinuousTabularData(DataColumn[] dataColumns, double[][] data) {
this.dataColumns = dataColumns;
this.data = data;
}
/**
* {@inheritDoc}
*
* Get the data columns.
*/
@Override
public DataColumn[] getDataColumns() {
return this.dataColumns;
}
/**
* {@inheritDoc}
*
* Get the data.
*/
@Override
public double[][] getData() {
return this.data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy