@Override public CategoricalTable copy(){
  Map<Value,Double> newTable=new HashMap<Value,Double>();
  for (  Value v : table.keySet()) {
    newTable.put(v,table.get(v));
  }
  return new CategoricalTable(variable,newTable);
}

@ Override public CategoricalTable copy ( ) { Map < Value , Double > newTable = new HashMap < Value , Double > ( ) ; for ( Value v : table . keySet ( ) ) { newTable . put ( v , table . get ( v ) ) ; } return new CategoricalTable ( variable , newTable ) ; }
returns a copy of the probability table
