package deracinema;
public class check {
double h;
int th1[]=new int[6];
int th2[]=new int[6];
int c[][]=new int[6][6];
int y1[][]=new int[6][6];
int y2[][]=new int[6][6];
int s1,s2;
double u1,v1;
double makedata(){
v1=0;
for(s1=1;s1<6;s1++){
for(s2=1;s2<6;s2++){
u1=u(s1,s2,y1[s1][s2],y2[s1][s2],c[s1][s2]);
v1=u1+v1;
}
}
return v1;
}
double u(int s1,int s2,int z1,int z2,int cx){
double u1;
double c1,x1,x2;
int z;
u1=0;
c1=cx*h;
x1=1-(double)z1/th1[s1];
x2=1-(double)z2/th2[s2];
z=0;
if(x1>1)z=100;
if(x1<0.01)z=100;
if(x2>1)z=100;
if(x2<0.01)z=100;
if(c1<0.01)z=100;
u1=-999;
if(z<50)u1=Math.log(c1)+Math.log(x1)+Math.log(x2);
return u1;
}
}
最終更新:2013年08月16日 23:58