Tree

scalation.database.Tree
See theTree companion class
object Tree

The Tree companion object provides methods for building trees.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Tree.type

Members list

Value members

Concrete methods

def apply(depth: Int, minOut: Int, maxOut: Int, stream: Int): Tree

Randomly generate a tree.

Randomly generate a tree.

Value parameters

depth

the depth of the tree

maxOut

the maximum number of children allowed (2 => binary tree)

minOut

the minimum number of children allowed (0 => binary tree)

stream

the random number stream

Attributes

def apply(pred: VectorI, labl: Array[ValueType], depth: Int, name: String): Tree

Create a tree from an inverted tree, i.e., a predecessor/parent list.

Create a tree from an inverted tree, i.e., a predecessor/parent list.

Value parameters

depth

the estimated average depth of the tree

labl

the node labels

name

the name of tree

pred

the predecessor/parent vector

Attributes

See also

treeTest3 for an example.