クラス rcsc::FormationBPN

formation implementation using Neural Network [詳細]

#include <formation_bpn.h>

rcsc::FormationBPNに対する継承グラフ

rcsc::Formation すべてのメンバ一覧

Public メソッド

 FormationBPN ()
 just call the base class constructor
virtual std::string methodName () const
 get the name of this formation
virtual Snapshot createDefaultParam ()
 create default formation. assign role and initial positions.
virtual std::string getRoleName (const int unum) const
 get the role name of the specified player
virtual Vector2D getPosition (const int unum, const Vector2D &focus_point) const
 get position for the current focus point
virtual void getPositions (const Vector2D &focus_point, std::vector< Vector2D > &positions) const
virtual void train (const std::list< Snapshot > &train_data)
 update formation paramter using training data set
bool read (std::istream &is)
 restore data from the input stream.
std::ostream & print (std::ostream &os) const
 put data to the output stream.

Static Public メソッド

static std::string name ()
 static method. get the type name of this formation
static Formationcreate ()
 static method. factory of this class

Protected メソッド

virtual void createNewRole (const int unum, const std::string &role_name, const SideType type)
 create new role parameter.
virtual void setRoleName (const int unum, const std::string &name)
 set the role name of the specified player

構成

class  Param
 formation parameter using BPN. one Param instance realizes just one player's position. [詳細]

説明

formation implementation using Neural Network


関数

static std::string rcsc::FormationBPN::name (  )  [inline, static]

static method. get the type name of this formation

戻り値:
type name string

static Formation* rcsc::FormationBPN::create (  )  [inline, static]

static method. factory of this class

戻り値:
pointer to the new object

virtual std::string rcsc::FormationBPN::methodName (  )  const [inline, virtual]

get the name of this formation

戻り値:
name string

rcsc::Formationを実装しています。

Formation::Snapshot rcsc::FormationBPN::createDefaultParam (  )  [virtual]

create default formation. assign role and initial positions.

戻り値:
snapshow variable for the initial stat(ball pos=(0,0)).

rcsc::Formationを実装しています。

void rcsc::FormationBPN::createNewRole ( const int  unum,
const std::string &  role_name,
const SideType  type 
) [protected, virtual]

create new role parameter.

引数:
unum target player's number
role_name new role name
type side type of this parameter

rcsc::Formationを実装しています。

void rcsc::FormationBPN::setRoleName ( const int  unum,
const std::string &  name 
) [protected, virtual]

set the role name of the specified player

引数:
unum target player's number
name role name string.

rcsc::Formationを実装しています。

std::string rcsc::FormationBPN::getRoleName ( const int  unum  )  const [virtual]

get the role name of the specified player

引数:
unum target player's number
戻り値:
role name string. if empty string is returned, that means no role parameter is assigned for unum.

rcsc::Formationを実装しています。

Vector2D rcsc::FormationBPN::getPosition ( const int  unum,
const Vector2D focus_point 
) const [virtual]

get position for the current focus point

引数:
unum player number
forcus_point current focus point, usually ball position.

rcsc::Formationを実装しています。

void rcsc::FormationBPN::train ( const std::list< Snapshot > &  train_data  )  [virtual]

update formation paramter using training data set

引数:
train_data training data container

bool rcsc::FormationBPN::read ( std::istream &  is  )  [virtual]

restore data from the input stream.

引数:
is reference to the input stream.
戻り値:
parsing result

rcsc::Formationを実装しています。

std::ostream & rcsc::FormationBPN::print ( std::ostream &  os  )  const [virtual]

put data to the output stream.

引数:
os reference to the output stream
戻り値:
reference to the output stream

rcsc::Formationを実装しています。


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0