ο(≧▽≦)ο
2006-12-01 23:52:25 UTC
�U���j�j�n...
�p�̼g�F�@�ӵ{��
�Ʊ��b�غc������jxl���Jexcel����
�M���b���L�{���ŧi�}�C ���غc���������ƶǤJ�}�l�@�B��...
�i�O�_�Ǫ��O �}�C�@�����������غc���ǤJ������...
�ЦU���j�j��ڬݬ�... �O���O���̼g���F??? @@
public void trainNetwork() {
for (int x = 0; x < mTrainPoints; x++) {
mTrainPointsArray[x] = new Point(x);
}
....................
public Point(int x) {
try {
Workbook workbook = Workbook.getWorkbook(new File("Book2.xls"));
Sheet sheet=workbook.getSheet("Sheet1");
int row=sheet.getRows();
int col=sheet.getColumns();
float w [] = new float[20];
Cell c0 = null;
for( int i=0 ; i <= col ; i++)
{
c0 = sheet.getCell( i , x); //�Ʊ�x�����W���j�骺x��
//�����D�o�˼g�O�_���T...@@
String s1= c0.getContents();
w [i] =Float.parseFloat(s1);
}
a = w[0];
b = w[1];
c = w[2];
d = w[3];
e = w[4];
f = w[5];
g = w[6];
h = w[7];
i = w[8];
j = w[9];
k = w[10];
l = w[11];
m = w[12];
n = w[13];
o = w[14];
p = w[15];
} catch (Exception e) {
System.err.println(e.getMessage());
} // catch
}
��ЦU���j�j���� <(_ _)>
--
[1;33m~*~[m [1;33;41m�U[m [1;33m~*~[m [1;33;41m�G[m [1;33m~*~[m [1;33;41m�h[m [1;33m~*~[m [1;33;41mǧ[m [1;33m~*~[m [1;33;41m��[m [1;33m~*~[m [1;33;41mǻ[m [1;33m~*~[m [1;33;41m��[m [1;33m~*~[m [1;33;41m��[m [1;33m~*~[m [1;33;41m��[m [1;33m~*~[m
[1;5;35m���L[m�� [1;33;44m��[m ��[1;35m��[m�� [1;33;44m�T[m ��[1;35m��[m�� [1;33;44m��[m ��[1;35m��[m�� [1;33;44m�H[m ��[1;35m��[m�� [1;33;44m��[m ��[1;5;35m�L��[m�
--
�� �o�H��: ���������~�{(ptt.cc)
�� From: 203.73.170.128
�p�̼g�F�@�ӵ{��
�Ʊ��b�غc������jxl���Jexcel����
�M���b���L�{���ŧi�}�C ���غc���������ƶǤJ�}�l�@�B��...
�i�O�_�Ǫ��O �}�C�@�����������غc���ǤJ������...
�ЦU���j�j��ڬݬ�... �O���O���̼g���F??? @@
public void trainNetwork() {
for (int x = 0; x < mTrainPoints; x++) {
mTrainPointsArray[x] = new Point(x);
}
....................
public Point(int x) {
try {
Workbook workbook = Workbook.getWorkbook(new File("Book2.xls"));
Sheet sheet=workbook.getSheet("Sheet1");
int row=sheet.getRows();
int col=sheet.getColumns();
float w [] = new float[20];
Cell c0 = null;
for( int i=0 ; i <= col ; i++)
{
c0 = sheet.getCell( i , x); //�Ʊ�x�����W���j�骺x��
//�����D�o�˼g�O�_���T...@@
String s1= c0.getContents();
w [i] =Float.parseFloat(s1);
}
a = w[0];
b = w[1];
c = w[2];
d = w[3];
e = w[4];
f = w[5];
g = w[6];
h = w[7];
i = w[8];
j = w[9];
k = w[10];
l = w[11];
m = w[12];
n = w[13];
o = w[14];
p = w[15];
} catch (Exception e) {
System.err.println(e.getMessage());
} // catch
}
��ЦU���j�j���� <(_ _)>
--
[1;33m~*~[m [1;33;41m�U[m [1;33m~*~[m [1;33;41m�G[m [1;33m~*~[m [1;33;41m�h[m [1;33m~*~[m [1;33;41mǧ[m [1;33m~*~[m [1;33;41m��[m [1;33m~*~[m [1;33;41mǻ[m [1;33m~*~[m [1;33;41m��[m [1;33m~*~[m [1;33;41m��[m [1;33m~*~[m [1;33;41m��[m [1;33m~*~[m
[1;5;35m���L[m�� [1;33;44m��[m ��[1;35m��[m�� [1;33;44m�T[m ��[1;35m��[m�� [1;33;44m��[m ��[1;35m��[m�� [1;33;44m�H[m ��[1;35m��[m�� [1;33;44m��[m ��[1;5;35m�L��[m�
--
�� �o�H��: ���������~�{(ptt.cc)
�� From: 203.73.170.128