@NoOffset public static class DTrees.Node extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Node() |
Node(long size)
Native array allocator.
|
Node(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
classIdx()
Class index normalized to 0..class_count-1 range and assigned to the
node.
|
DTrees.Node |
classIdx(int setter) |
int |
defaultDir()
Default direction where to go (-1: left or +1: right).
|
DTrees.Node |
defaultDir(int setter) |
int |
left()
Index of the left child node
|
DTrees.Node |
left(int setter) |
int |
parent()
Index of the parent node
|
DTrees.Node |
parent(int setter) |
DTrees.Node |
position(long position) |
int |
right()
Index of right child node
|
DTrees.Node |
right(int setter) |
int |
split()
Index of the first split
|
DTrees.Node |
split(int setter) |
double |
value()
Value at the node: a class label in case of classification or estimated
function value in case of regression.
|
DTrees.Node |
value(double setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public Node(Pointer p)
Pointer.Pointer(Pointer)
.public Node(long size)
Pointer.position(long)
.public Node()
public DTrees.Node position(long position)
public double value()
public DTrees.Node value(double setter)
public int classIdx()
public DTrees.Node classIdx(int setter)
public int parent()
public DTrees.Node parent(int setter)
public int left()
public DTrees.Node left(int setter)
public int right()
public DTrees.Node right(int setter)
public int defaultDir()
public DTrees.Node defaultDir(int setter)
public int split()
public DTrees.Node split(int setter)
Copyright © 2020. All rights reserved.