Exemplo n.º 1
0
void draw_histogram(int *number)
{

	int i = 0;

	for(i = 0; i < MAXNUMBER; i++){
		if(number[i] > 0){
			printf("Number %d: ", i);
			make_x(number[i]);
		}
	}
}
Exemplo n.º 2
0
Arquivo: main.c Projeto: Flyswat/wmmp
mat make_Y(uint Nv, uint Ns, uint Nc, mat U, double wcr)
{
	uint i;
	mat Y = mat_new(Nv,Ns);
	it_randomize();
	for (i=0; i < Ns; i++) {
		vec x, y, w;
		bvec m;

		x = make_x( Nv );
		m = make_m( Nc );
		w = make_w( U, m );

		y = make_y( x, w, wcr );
		mat_set_col(Y,i,y);

		vec_delete( x );
		vec_delete( w );
		vec_delete( y );
		bvec_delete( m );
	}

	return Y;
}