Skip to content

Commit a843510

Browse files
MAINT: Fix typo in variable used for KMeans (#3319)
* fix typo * another typo
1 parent 8dbb081 commit a843510

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cpp/daal/src/algorithms/kmeans/kmeans_plusplus_init_impl.i

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -679,20 +679,20 @@ void TaskPlusPlusBatch<algorithmFPType, cpu, DataHelper>::calcCenter(size_t iClu
679679

680680
// search best candidate from nTrials
681681
algorithmFPType bestMinInertia = daal::services::internal::MaxVal<algorithmFPType>::get();
682-
size_t iTialBest = 0u;
682+
size_t iTrialBest = 0u;
683683

684684
for (size_t iTrials = 0u; iTrials < this->_nTrials; iTrials++)
685685
{
686-
algorithmFPType newInersia = this->_overallError[iTrials];
686+
algorithmFPType newInertia = this->_overallError[iTrials];
687687

688-
if (newInersia < bestMinInertia)
688+
if (newInertia < bestMinInertia)
689689
{
690-
bestMinInertia = newInersia;
691-
iTialBest = iTrials;
690+
bestMinInertia = newInertia;
691+
iTrialBest = iTrials;
692692
}
693693
}
694694

695-
this->_trialBest = iTialBest;
695+
this->_trialBest = iTrialBest;
696696
}
697697

698698
template <typename algorithmFPType, CpuType cpu>

0 commit comments

Comments
 (0)