	@Test
	public void testentropy() {

		int[] w;
		float[] ww;
		float e;
		w= new int[]{ 1, 2, 3, 4, 0, 0, 0 };		
		e = MyArrays.entropy(w);		
		System.out.print(e + " ");
		
		ww= new float[]{ 1, 0, 0, 0, 0, 0, 0 };		
		e = MyArrays.entropy(ww);		
		System.out.print(e + " ");
		
		System.out.println();
		TIntArrayList www = new TIntArrayList();
		for(int i=0;i<100;i++){
		www.add(1);
		w = www.toArray();
		e = MyArrays.entropy(w);		
		System.out.print(e + " ");
		System.out.println(e/w.length);
		}
		System.out.println();
		
		ww= new float[]{ 0.5f, 0.5f };		
		e = MyArrays.entropy(ww);		
		System.out.print(e + " ");
	}