29 blockAsStringWithHeader(
"" ),
31 blockScale(
BOL::UsefulStuff::notANumber )
44 std::list< std::pair< int, double > >
const& scaleOrderedIndices,
45 int& indexForLowerScale,
46 int& indexForUpperScale,
47 double& fractionFromLowerScale )
84 if( scaleOrderedIndices.empty() )
90 if( 1 == scaleOrderedIndices.size() )
92 indexForLowerScale = 1;
93 indexForUpperScale = 1;
99 std::list< std::pair< int, double > >::const_iterator
100 scaleIterator( scaleOrderedIndices.begin() );
101 indexForLowerScale = scaleIterator->first;
103 double lowerScale( scaleIterator->second );
104 indexForUpperScale = (++scaleIterator)->first;
106 double upperScale( scaleIterator->second );
107 while( ( scaleOrderedIndices.end() != scaleIterator )
109 ( soughtScale >= scaleIterator->second ) )
113 indexForLowerScale = indexForUpperScale;
114 indexForUpperScale = (++scaleIterator)->first;
116 lowerScale = upperScale;
117 upperScale = scaleIterator->second;
127 if( 0.0 == ( upperScale - lowerScale ) )
133 fractionFromLowerScale
134 = ( ( soughtScale - lowerScale ) / ( upperScale - lowerScale ) );
static double const notANumber
static bool findScaleIndices(double const soughtScale, std::list< std::pair< int, double > > const &scaleOrderedIndices, int &indexForLowerScale, int &indexForUpperScale, double &fractionFromLowerScale)
static std::string const blockIdentifierString
static std::string const decayIdentifierString