use c++ style casts
This commit is contained in:
@ -73,7 +73,7 @@ MarkovPath::MarkovPath
|
||||
if(meanIntervalSteps_<0)
|
||||
{
|
||||
// if no mean interval length for consecutive steps is specified, use 1/5 from first interval
|
||||
meanIntervalSteps_ = (label) (0.2 * intervalSizes_[0]);
|
||||
meanIntervalSteps_ = static_cast<label>(0.2 * intervalSizes_[0]);
|
||||
}
|
||||
|
||||
// normalize weights and create cumulative distribution
|
||||
|
||||
@ -67,7 +67,7 @@ multiIntervalPath::multiIntervalPath
|
||||
if(meanIntervalSteps_<0)
|
||||
{
|
||||
// if no mean interval length for consecutive steps is specified, use 1/5 from first interval
|
||||
meanIntervalSteps_ = (label) (0.2 * intervalSizes_[0]);
|
||||
meanIntervalSteps_ = static_cast<label>(0.2 * intervalSizes_[0]);
|
||||
}
|
||||
|
||||
// normalize weights
|
||||
|
||||
Reference in New Issue
Block a user