Skip to content

Commit

Permalink
fix Formating issue in modelchoice_out.lda #73
Browse files Browse the repository at this point in the history
  • Loading branch information
fradav committed Jan 21, 2021
1 parent 6724608 commit e8d3a6c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ModelChoice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ ModelChoiceResults ModelChoice_fun(Reftable<MatrixType> &myread,
const std::string& lda_filename = outfile + ".lda";
std::ofstream lda_file;
if (!quiet) {
MatrixXd ldastatobs = statobs(all,lastN(data_extended.cols()));
MatrixXd toprint(n+ldastatobs.rows(),data_extended.cols());
toprint << ldastatobs, data_extended;
lda_file.open(lda_filename, std::ios::out);
lda_file << "# First line is observed data" << std::endl;
lda_file << statobs(all,lastN(data_extended.cols())) << std::endl;
lda_file << data_extended << std::endl;
lda_file << "# First lines (" << ldastatobs.rows() << ") are observed data" << std::endl;
lda_file << toprint << std::endl;
}
lda_file.close();
}
Expand Down

0 comments on commit e8d3a6c

Please sign in to comment.