Skip to content

Commit 9530e12

Browse files
committed
linear lcE
1 parent 1a82b34 commit 9530e12

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/IntaRNA/ObjectiveHandler.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ getLcE( const size_t & curLength, const E_type & fullE, const InteractionEnergy
3131
{
3232
// const size_t maxLength = std::max( std::min(energy.getAccessibility1().getSequence().size(), energy.getAccessibility1().getMaxLength())
3333
// , std::min(energy.getAccessibility2().getSequence().size(), energy.getAccessibility2().getMaxLength()) );
34-
LOG_IF(curLength<1, DEBUG) <<"curLength < 1";
35-
return (E_type)( (double)(fullE) / std::log2(1+(double)curLength) );
34+
// return (E_type)( (double)(fullE) / std::log2(1+(double)curLength) );
3635
// return (E_type)( (double)(fullE) / std::log(5+(double)curLength) );
3736
// return (E_type)( (double)(fullE) / std::log(2.0*(double)curLength) );
3837
// return (fullE) / (E_type)curLength;
39-
// return (fullE * maxLength) / curLength;
38+
return E_type((float)(fullE) / (float)curLength);
4039
}
4140

4241

0 commit comments

Comments
 (0)