T = ntree(ord,d,s)
sets a "split scheme" for nodes.
T = ntree(ord,d,s,u)
sets the user data field of T.
You can also specify function inputs this way: T =
ntree('order',ord,'depth',d,'spsch',s,'ud',u). For unspecified inputs,
the defaults are ord = 2 and d = 0 , s = ones(ord,1]) ,
u = {}.
[T,nb] = ntree(___)
also returns the number of terminal nodes (leaves) of T.
Split scheme, specified as an ord-by-1 logical array.
The root of the tree can be split and it has ord
children. You can split the jth child if
s(j) = 1.
Each node that you can split has the same property as the root node.
Example: T = ntree(2,3,[1 0]) splits the first node at
every level.
User data to set in the ud field of
T, specified as an array, cell array, or structure
array.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.