JAGA Homepage

org.jaga.exampleApplications.proteinLocation
Class DataSplitter

java.lang.Object
  extended by org.jaga.exampleApplications.proteinLocation.DataSplitter

public class DataSplitter
extends java.lang.Object

TODO: Complete these comments.

Project: JAGA - Java API for Genetic Algorithms.

Company: University College London and JAGA.Org (http://www.jaga.org).

Copyright: (c) 2004 by G. Paperin.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, ONLY if you include a note of the original author(s) in any redistributed/modified copy.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA or see http://www.gnu.org/licenses/gpl.html

Version:
JAGA public release 1.0 beta
Author:
Greg Paperin (greg@jaga.org)

Nested Class Summary
(package private)  class DataSplitter.Protein
           
 
Field Summary
static java.lang.String dataDir
           
static int outputLineLen
           
private  java.util.ArrayList[] prots
           
static java.lang.String[] sourceFiles
           
static double testSetProportion
           
static java.lang.String[] trainDestFiles
           
static java.lang.String[] validDestFiles
           
 
Constructor Summary
DataSplitter()
           
 
Method Summary
 void exec()
           
private  void loadProtein(java.lang.String fname, java.util.ArrayList protList)
           
private  void loadProteins()
           
static void main(java.lang.String[] args)
           
private  void randomise()
           
private  void saveProtein(DataSplitter.Protein[] protList, java.lang.String fname)
           
private  void saveProteins()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

testSetProportion

public static final double testSetProportion
See Also:
Constant Field Values

outputLineLen

public static final int outputLineLen
See Also:
Constant Field Values

dataDir

public static final java.lang.String dataDir
See Also:
Constant Field Values

sourceFiles

public static final java.lang.String[] sourceFiles

trainDestFiles

public static final java.lang.String[] trainDestFiles

validDestFiles

public static final java.lang.String[] validDestFiles

prots

private java.util.ArrayList[] prots
Constructor Detail

DataSplitter

public DataSplitter()
Method Detail

loadProtein

private void loadProtein(java.lang.String fname,
                         java.util.ArrayList protList)
                  throws java.io.IOException
Throws:
java.io.IOException

loadProteins

private void loadProteins()
                   throws java.io.IOException
Throws:
java.io.IOException

randomise

private void randomise()

saveProtein

private void saveProtein(DataSplitter.Protein[] protList,
                         java.lang.String fname)
                  throws java.io.IOException
Throws:
java.io.IOException

saveProteins

private void saveProteins()
                   throws java.io.IOException
Throws:
java.io.IOException

exec

public void exec()

main

public static void main(java.lang.String[] args)

JAGA Homepage

Go to JAGA Homepage