SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
IndexBlockGroup.h
浏览该文件的文档.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Copyright (C) 2012 Sergey Lisitsyn
8  */
9 
10 #ifndef INDEXBLOCKGROUP_H_
11 #define INDEXBLOCKGROUP_H_
12 
13 #include <shogun/lib/config.h>
14 
15 #include <shogun/lib/SGVector.h>
17 
18 namespace shogun
19 {
20 
21 class CIndexBlock;
22 class CList;
23 
31 {
32 public:
33 
36 
38  virtual ~CIndexBlockGroup();
39 
44 
48  void remove_block(CIndexBlock* block);
49 
54 
55  virtual EIndexBlockRelationType get_relation_type() const { return GROUP; }
56 
58  const char* get_name() const { return "IndexBlockGroup"; };
59 
60 protected:
61 
63  CList* m_blocks;
64 
65 };
66 
67 }
68 #endif
69 
class IndexBlockGroup used to represent group-based feature relation.
void add_block(CIndexBlock *block)
class IndexBlockRelation
virtual EIndexBlockRelationType get_relation_type() const
SGVector< index_t > get_SLEP_ind()
class IndexBlock used to represent contiguous indices of one group (e.g. block of related features) ...
Definition: IndexBlock.h:25
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
const char * get_name() const
void remove_block(CIndexBlock *block)
Class List implements a doubly connected list for low-level-objects.
Definition: List.h:84
Block< Matrix > block(Matrix matrix, index_t row_begin, index_t col_begin, index_t row_size, index_t col_size)
Definition: Block.h:102

SHOGUN 机器学习工具包 - 项目文档