Commit a2407692 authored by Jean-Benoist Leger's avatar Jean-Benoist Leger
Browse files

effet de bord plaqués

parent bb5deaa1
Pipeline #893 passed with stages
in 2 minutes and 24 seconds
......@@ -43,6 +43,7 @@ void AddTabs(std::string FileName) {
InputFile.close();
OutputFile.close();
std::remove(FileName.c_str());
std::rename(OutputFileName.c_str(), FileName.c_str());
}
// In the next function:
......
......@@ -287,6 +287,7 @@ void Imputator::MoveForwardBackward() {
Transpose(CharsProbasFileName, Aux);
AddTabs(Aux);
std::remove(CharsProbasFileName.c_str());
std::rename(Aux.c_str(), CharsProbasFileName.c_str());
}
if (DoViterbi) {
ViterbiFile.close();
......@@ -294,6 +295,7 @@ void Imputator::MoveForwardBackward() {
Transpose(ViterbiFileName, Aux);
AddTabs(Aux);
std::remove(ViterbiFileName.c_str());
std::rename(Aux.c_str(), ViterbiFileName.c_str());
}
if (CheckTauCoherence)
CheckTausFile.close();
......@@ -383,6 +385,7 @@ void Imputator::Viterbi(char *Ind) {
char c = '0' + (LastLetterCopy % 2);
int CurrentIndex = NbMarkers + DigitIndex - MyMarkovChainOrder;
Ind[CurrentIndex] = '0' + (LastLetterCopy % 2);
LastLetterCopy /= 2;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment