@@ -0,0 +1,1264 @@
+package blog.distrib;%0A%0A/**%0A * %22Don't care%22 prior.%0A * %0A * Use this for random variables which are always observed.%0A * %0A * @author cberzan%0A * @since November 25, 2014%0A */%0Apublic class DontCare implements CondProbDistrib %7B%0A%0A  /**%0A   * set parameters for DontCare distribution%0A   * %0A   * @param params%0A   *          DontCare takes no parameters.%0A   * %0A   * @see blog.distrib.CondProbDistrib#setParams(java.lang.Object%5B%5D)%0A   */%0A  public void setParams(Object%5B%5D params) %7B%0A    assert (params.length == 0);%0A  %7D%0A%0A  /*%0A   * (non-Javadoc)%0A   * %0A   * @see blog.distrib.CondProbDistrib#getProb(java.lang.Object)%0A   */%0A  public double getProb(Object value) %7B%0A    return 1.0;%0A  %7D%0A%0A  /*%0A   * (non-Javadoc)%0A   * %0A   * @see blog.distrib.CondProbDistrib#getLogProb(java.lang.Object)%0A   */%0A  public double getLogProb(Object value) %7B%0A    return 0.0;%0A  %7D%0A%0A  /*%0A   * (non-Javadoc)%0A   * %0A   * @see blog.distrib.CondProbDistrib#sampleVal()%0A   */%0A  public Object sampleVal() %7B%0A    throw new IllegalStateException(%0A        %22Tried to sample from a DontCare distribution.%22%0A            + %22 Did you forget to provide an observation?%22);%0A  %7D%0A%0A  @Override%0A  public String toString() %7B%0A    return getClass().getName();%0A  %7D%0A%0A  @Override%0A  public Object%5B%5D getFiniteSupport() %7B%0A    return null;%0A  %7D%0A%0A%7D%0A

add DontCare prior