|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.fisincorporated.stockanalysis.StockImager
This class will accept a list of stocks, date and period ranges and create an 'image' file of (presumably) stock closes for use in Kohonen SOM NN
| Constructor Summary | |
StockImager()
|
|
| Method Summary | |
boolean[][] |
createImageArray(float[] data,
int height)
Creates 2D 'image' array for Joone NN. |
boolean[][] |
createImageArray(long[] data,
int height)
Creates 2D 'image' array |
java.lang.String |
getImageString(boolean[][] image)
Takes a 2D boolean array and turns it into an 'image' string for NN |
java.lang.String |
getImageString(float[] data,
int height)
Create an 'image' string based on the data array given to it. |
java.lang.String |
getImageString(long[] data,
int height)
Same as prior getImageString but accepts array of long[] |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StockImager()
| Method Detail |
public java.lang.String getImageString(float[] data,
int height)
data - array of floatheight - The 'height' of the image in 'pixels' Or think of height as
providing % per pixel (100/height) eg. height = 50 then each
pixel will represents 2% of height
public java.lang.String getImageString(long[] data,
int height)
data - height -
public java.lang.String getImageString(boolean[][] image)
image - Boolean[x][y]
public boolean[][] createImageArray(float[] data,
int height)
data - Points to be imaged. Length of array is number points on X axisheight - 'Height' of image. Number points on Y axis.
public boolean[][] createImageArray(long[] data,
int height)
data - Points to be imaged. Length of array is number points on X axisheight - 'Height' of image. Number points on Y axis.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||