Skip to content

Commit

Permalink
code quaility
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Oct 21, 2023
1 parent aa4108e commit 6c8f6cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Targets.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ namespace Timbl {
void ClassDistribution::Merge( const ClassDistribution& VD ){
for ( const auto& it : VD.distribution ){
size_t key = it.first;
Vfield *vd = it.second;
const Vfield *vd = it.second;
if ( distribution.find(key) != distribution.end() ){
// the key is already present, increment the frequency
distribution[key]->AddFreq( vd->Freq() );
Expand All @@ -454,8 +454,8 @@ namespace Timbl {
void WClassDistribution::MergeW( const ClassDistribution& VD,
double Weight ){
for ( const auto& it : VD.distribution ){
Vfield *vd = it.second;
size_t key = it.first;
const Vfield *vd = it.second;
if ( distribution.find(key) != distribution.end() ){
distribution[key]->SetWeight( distribution[key]->Weight() + vd->Weight() *Weight );
}
Expand Down

0 comments on commit 6c8f6cf

Please sign in to comment.