|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--coreComponents.MatlabUtils
A very messy class used to store functions that are useful producing/working with Matlab.
Constructor Summary | |
MatlabUtils()
|
Method Summary | |
static java.lang.String |
commentOutText(java.lang.String text)
This is a stupid function that puts in Matlab comments into a region of text. |
static void |
createMatlabMatrixFile(java.lang.String comments,
Instances data,
java.lang.String filename)
Output instances as simple matlab matrix file |
static void |
plotInstancesAsMatlabLineGraph(java.lang.String comments,
java.lang.String title,
java.lang.String yAxisLabel,
java.lang.String xAxisLabel,
Instances data,
java.lang.String filename,
java.lang.String xAxisAttName)
Useful function for plotting the a data set of instances as a Matlab line graph. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MatlabUtils()
Method Detail |
public static void createMatlabMatrixFile(java.lang.String comments, Instances data, java.lang.String filename)
comments
- the comments to be put into the filedata
- the data to be outputfilename
- the filename to createpublic static void plotInstancesAsMatlabLineGraph(java.lang.String comments, java.lang.String title, java.lang.String yAxisLabel, java.lang.String xAxisLabel, Instances data, java.lang.String filename, java.lang.String xAxisAttName)
comments
- string used to describe experiment this will be commented outtitle
- the tile of the line plotyAxisLabel
- the name that you want to give the y-axis on the plotxAxisLabel
- the name that you want to give the x-axis on the plotdata
- the instances to be plottedfilename
- the filename (with directory path) to call the matlab '.m' filexAxisAttName
- string name of the attribute in the data which will be used for the x-axispublic static java.lang.String commentOutText(java.lang.String text)
text
- the text to be converted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London