//Source file: D:\\Projects\\src\\yi\\iu\\imgdb\\learn\\em\\EMLikeAdapter.java

package yi.iu.imgdb.learn.em;

import java.util.*;
import yi.util.data.*;
import yi.stat.em.*;
import yi.iu.imgdb.learn.*;
import yi.ds.hash.*;
import yi.util.io.*;
import yi.util.config.*;
import org.jmat.gui.*;
import java.text.*;

/**
 * Implement the "EM" like learning on image keywords (idea suggested by Jeff)
 */
public class GMMAdapter extends MixtureModelAdapter implements FeatureScoringCapable
{
  static final long serialVersionUID = 3080741763657132630L;

  public GMMAdapter(ImgDataCenter data_center, LinkedList img_list,
                       LinkedList ft_list, LinkedList obj_list) {
    super(data_center, img_list, ft_list, obj_list);
  }

  /**
   * GMMAdapter use Gaussian Mixture Model
   * @param fvList
   * @param objList
   * @return
   */
  protected MixtureModel createMixtureModel(HashMap fvList, HashMap objList) {
    return new ControlledIEGMM(m_imgFvList, m_imgObjList);
//    m_model = new ControlledInitGMM(m_imgFvList, m_imgObjList);
//    m_model = new ControlledIEBgGMM(m_imgFvList, m_imgObjList);
//    m_model = new ControlledIEWGMM(m_imgFvList, m_imgObjList);
  }


}
