47 void sequence_bottomup(
double *x,
double *u,
int n){
49 int *location=(
int *)malloc(
sizeof(
int)*n);
53 printf(
"\n Allocation of array failure!");
69 printf(
"\n n=%d should be an integer over 1!",n);
91 x[i]=(u[i] + x[i+1]*num)/(num+1);
92 location[i]=location[i+1];
100 x[i]=( x[i]* (j-i) + x[j]* num ) / (location[j] -i +1);
101 location[i]=location[j];
124 for(j=i+1;j<=location[i];j++){
149 void sequence_topdown(
double *x,
double *u,
int n){
151 double sum,
max, mean;
153 int *location=(
int *)malloc(
sizeof(
int)*n);
157 printf(
"\n Allocation of array failure!");
208 for(j=i+1;j<=location[i];j++){
223 #endif //USE_GPL_SHOGUN
Matrix::Scalar max(Matrix m)