Add a routine to SampleCollection that computes estimate of mode.

Issue #10 resolved
Matthew Parno created an issue

No description provided.

Comments (2)

  1. Matthew Parno reporter

    It’s straightforward to just grab the LogTarget metadata and find the index with the largest value. Given how easy this is, I don’t think we need to include anything in the SampleCollection class to enable this.

    More specifically,

    Eigen::MatrixXd logTargetDens = samps->GetMeta("LogTarget");
    
    double maxLogDens;
    unsigned int maxRow, maxCol;
    
    maxLogDens = logTargetDens.maxCoeff(&maxRow, &maxCol);
    

  2. Log in to comment