Package cc.mallet.grmm.inference

Examples of cc.mallet.grmm.inference.VariableElimination


  }

  // uses brute-force algorithm
  public Factor normalize ()
  {
    VariableElimination inf = new VariableElimination ();
    double Z = inf.computeNormalizationFactor (this);
    addFactor (new ConstantFactor (1.0/Z));
    return this;
  }
View Full Code Here


    }
  }

  public Factor marginalize (Variable var)
  {
    VariableElimination inf = new VariableElimination ();
    return inf.unnormalizedMarginal (this, var);
  }
View Full Code Here

    return sampler.sample (this, 1);
  }

  public double sum ()
  {
    VariableElimination inf = new VariableElimination ();
    return inf.computeNormalizationFactor (this);
  }
View Full Code Here

  }

  // uses brute-force algorithm
  public Factor normalize ()
  {
    VariableElimination inf = new VariableElimination ();
    double Z = inf.computeNormalizationFactor (this);
    addFactor (new ConstantFactor (1.0/Z));
    return this;
  }
View Full Code Here

    }
  }

  public Factor marginalize (Variable var)
  {
    VariableElimination inf = new VariableElimination ();
    return inf.unnormalizedMarginal (this, var);
  }
View Full Code Here

    return sampler.sample (this, 1);
  }

  public double sum ()
  {
    VariableElimination inf = new VariableElimination ();
    return inf.computeNormalizationFactor (this);
  }
View Full Code Here

TOP

Related Classes of cc.mallet.grmm.inference.VariableElimination

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.