v2.0.0
Loading...
Searching...
No Matches
INVLIB::InvToken Struct Reference

One element of a tokenised neural-source representation. More...

#include <inv_token.h>

Public Member Functions

 InvToken ()
 InvToken (InvTokenId _id)
 InvToken (InvTokenId _id, float _val)

Public Attributes

InvTokenId id
float value

Detailed Description

One element of a tokenised neural-source representation.

A single token in the serialised representation of an InvSourceEstimate.

Structural tokens (section markers, metadata labels, booleans) use only the id field. Value-carrier tokens (amplitudes, positions, times) pair id with a continuous value.

For purely discrete architectures the continuous value can be quantised into a bin index and encoded as InvTokenId::QuantBinBase + bin, discarding the float.

Definition at line 223 of file inv_token.h.

Constructor & Destructor Documentation

◆ InvToken() [1/3]

INVLIB::InvToken::InvToken ( )
inline

Definition at line 228 of file inv_token.h.

◆ InvToken() [2/3]

INVLIB::InvToken::InvToken ( InvTokenId _id)
inlineexplicit

Definition at line 229 of file inv_token.h.

◆ InvToken() [3/3]

INVLIB::InvToken::InvToken ( InvTokenId _id,
float _val )
inline

Definition at line 230 of file inv_token.h.

Member Data Documentation

◆ id

InvTokenId INVLIB::InvToken::id

Vocabulary token ID.

Definition at line 225 of file inv_token.h.

◆ value

float INVLIB::InvToken::value

Continuous value (0 for structural tokens).

Definition at line 226 of file inv_token.h.


The documentation for this struct was generated from the following file: