@Override public OutputDistribution copy(){
  OutputDistribution copy=new OutputDistribution(baseVar + primes);
  for (  AnchoredRule rule : inputRules) {
    copy.addAnchoredRule(rule);
  }
  return copy;
}

@ Override public OutputDistribution copy ( ) { OutputDistribution copy = new OutputDistribution ( baseVar + primes ) ; for ( AnchoredRule rule : inputRules ) { copy . addAnchoredRule ( rule ) ; } return copy ; }
returns a copy of the distribution
