numl.Supervised.NaiveBayes.NaiveBayesGenerator.LabelIds C# (CSharp) Method

LabelIds() private method

private LabelIds ( Measure m ) : void
m Measure
return void
        private void LabelIds(Measure m)
        {
            m.Id = ++_vertexId;
            if (m.Probabilities != null)
            {
                foreach (var s in m.Probabilities)
                    s.Id = ++_vertexId;
                foreach (var s in m.Probabilities)
                    if (s.Conditionals != null)
                        foreach (var measure in s.Conditionals)
                            LabelIds(measure);
            }
        }