org.encog.ml.data.versatile.division
Class DataDivision
- java.lang.Object
-
- org.encog.ml.data.versatile.division.DataDivision
-
public class DataDivision extends java.lang.ObjectA division of data inside of a versatile data set.
-
-
Constructor Summary
Constructors Constructor and Description DataDivision(double thePercent)Construct a division.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidallocateMask(int theSize)Allocat space to hold the mask.intgetCount()MatrixMLDataSetgetDataset()int[]getMask()doublegetPercent()voidsetCount(int count)voidsetDataset(MatrixMLDataSet dataset)
-
-
-
Constructor Detail
-
DataDivision
public DataDivision(double thePercent)
Construct a division.- Parameters:
thePercent- The desired percentage in this division.
-
-
Method Detail
-
getCount
public int getCount()
- Returns:
- the count
-
setCount
public void setCount(int count)
- Parameters:
count- the count to set
-
getDataset
public MatrixMLDataSet getDataset()
- Returns:
- the dataset
-
setDataset
public void setDataset(MatrixMLDataSet dataset)
- Parameters:
dataset- the dataset to set
-
getPercent
public double getPercent()
- Returns:
- the percent
-
allocateMask
public void allocateMask(int theSize)
Allocat space to hold the mask.- Parameters:
theSize- The mask size.
-
getMask
public int[] getMask()
- Returns:
- the mask
-
-
DMelt 3.0 © DataMelt by jWork.ORG