Ejemplo n.º 1
0
		//code of alain espinosa
		public virtual Node FirstNode()
		{
			Node _result = null;
			
			try
			{
				if (m_isLeaf)
				{
					_result = new Node(m_localModel.dumpLabel(0, m_train));
				}
				else
				{
					_result = new weka.support.Node(m_localModel.leftSide(m_train));
					
					for (int i = 0; i < m_sons.Length; i++)
					{
						_result.AddChild(m_localModel.rightSide(i, m_train), m_sons[i].FirstNode());
					}
				}
			}
			catch (System.Exception)
			{
			}
			
			return _result;
		}
Ejemplo n.º 2
0
		public virtual void  AddChild(System.String ConectionName, Node child)
		{
			childs.Add(child);
			conectionNames.Add(ConectionName);
		}