com.github.chen0040.glm.data.DataFrame Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-glm Show documentation
Show all versions of java-glm Show documentation
Generalized linear models implemented in Java
package com.github.chen0040.glm.data;
import com.github.chen0040.glm.utils.TupleTwo;
import java.util.List;
import java.util.stream.Stream;
/**
* Created by xschen on 28/4/2017.
*/
public interface DataFrame extends Iterable {
int rowCount();
DataRow row(int i);
List getInputColumns();
List getOutputColumns();
void unlock();
boolean isLocked();
void lock();
DataRow newRow();
void addRow(DataRow row);
String head(int limit);
DataFrame shuffle();
TupleTwo split(double ratio);
Stream stream();
}