SHOGUN  6.1.3
List of all members | Public Member Functions | Static Public Member Functions
Block Class Reference

Detailed Description

Class that holds a block feature. A block feature is a shallow copy of an underlying (non-owning) feature object. In its constructor, it increases the refcount of the original object (since it has to be alive as long as the block is alive) and it decreases the refcount of the original object in destructor.

Definition at line 52 of file statistical_testing/internals/Block.h.

Public Member Functions

 Block (const Block &other)
 
Blockoperator= (const Block &other)
 
 ~Block ()
 
 operator CFeatures * ()
 

Static Public Member Functions

static std::vector< Blockcreate_blocks (CFeatures *feats, index_t num_blocks, index_t size)
 

Constructor & Destructor Documentation

◆ Block()

Block ( const Block other)

Copy constructor. Every time a block is copied or assigned, the underlying feature object is SG_REF'd.

Definition at line 58 of file Block.cpp.

◆ ~Block()

~Block ( )

Destructor. Decreases the reference count of the underlying feature object.

Definition at line 73 of file Block.cpp.

Member Function Documentation

◆ create_blocks()

std::vector< Block > create_blocks ( CFeatures feats,
index_t  num_blocks,
index_t  size 
)
static

Method that creates a number of block objects. See for details.

Parameters
featsThe underlying feature object.
num_blocksThe number of blocks to be formed.
sizeThe size of the block (number of feature vectors).

Definition at line 79 of file Block.cpp.

◆ operator CFeatures *()

operator CFeatures * ( )

Operator overloading for getting the block object as a naked ptr (non-const, unsafe).

Definition at line 97 of file statistical_testing/internals/Block.h.

◆ operator=()

Block & operator= ( const Block other)

Assignment operator. Every time a block is copied or assigned, the underlying feature object is SG_REF'd.

Definition at line 64 of file Block.cpp.


The documentation for this class was generated from the following files:

SHOGUN Machine Learning Toolbox - Documentation