/***********************************************************************

	This file is part of JavaNPST, a Java library of NonParametric
	Statistical Tests.

	Copyright (C) 2011
	
	J. Derrac (jderrac@decsai.ugr.es)
	S. Garcia (sglopez@ujaen.es)
	F. Herrera (herrera@decsai.ugr.es)

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see http://www.gnu.org/licenses/
  
**********************************************************************/

package javanpst.data.distributions.incompleteTable;

import java.util.Arrays;
import javanpst.data.DataDefinitions;

/**
 * A table representation with 3 keys where some elements are missing.
 * 
 * @author Joaqu�n Derrac Rus (jderrac@decsai.ugr.es)
 * @version 1.0
 */
public class Incomplete3KeyTable{
	
	/**
	 * Length of each dimension 
	 */
	private int dimensions [];
	
	/**
	 * Matrix of values
	 */
	private double body [][][];
	
	/**
	 * Builder
	 * 
	 * @param dim1 length of first dimension
	 * @param dim2 length of second dimension
	 * @param dim3 length of third dimension
	 */
	public Incomplete3KeyTable(int dim1, int dim2,int dim3){
		
		dimensions= new int[3];
		
		dimensions[0]=dim1;
		dimensions[1]=dim2;
		dimensions[2]=dim3;
		
		body=new double[dim1][dim2][dim3];
		
		clear();
		
	}//end-method
	
	/**
	 * Clears the table
	 */
	public void clear(){
		
		for(int i=0;i=0) && (dim1=0) && (dim2=0) && (dim3=0) && (dim1=0) && (dim2=0) && (dim3=0) && (dim1=0) && (dim2=0) && (dim3 

Ads help maintain this website.