new Binding(y, x, bopt, normalizedopt)
- Description:
Implements a macroscopic ersatz of a VSA left-binding/unbinding.
- Implements the VTB
B(y) xandB(y~) xoperators, i.e., either- the binding of
xby theVTBmatrix ofy, - the unbinding of
xby theVTBmatrix ofy~, withB(y~) = B(y)^T.
- the binding of
- The binding name
B(y)_xis calculated from its member name. - The binding belief
tau = tau_y tau_xandsigma = sigma_0 + sigma_y + sigma_xis calculated from its member belief. - Note: a binding can not be copied, use the clone() method instead.
Extends: Symbol, with all public methods available.
- Implements the VTB
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
y |
Symbol | The y symbol. |
||
x |
Symbol | The x symbol. |
||
b |
bool |
<optional> |
true
|
If true constructs a binding, if false construct an unbinding. |
normalized |
bool |
<optional> |
false
|
If true the mesoscopic computed vector is normalized to a unary magnitude. |
Methods
y() → {Symbol}
- Description:
Returns the binding operator y left parameter.
Returns:
The y value.
- Type
- Symbol
x() → {Symbol}
- Description:
Returns the binding operator x left parameter.
Returns:
The x value.
- Type
- Symbol
b() → {bool}
- Description:
Returns the binding/unbinding flag.
Returns:
If true the operation is a bindind, if false it is an unbinding.
- Type
- bool
normalized() → {bool}
- Description:
Returns the normalize flag.
Returns:
If true mesoscopic computed vector is normalized to a unary magnitude.
- Type
- bool
asString() → {String}
- Description:
Returns the value as a string.
Returns:
A string of the B_(y)(x)_<belief> for binding or B_(y~)(x)_<belief> for unbinding, omitting the belief if tau=1, sigma=0.
- Type
- String
(static) getComputationTIme() → {double}
- Description:
Returns an estimation of the computation time
- It has been calibrated on a
Intel® CoreTM i5-8265U CPU @ 1.60GHz × 8 cores processorwith no use of GPU.
- It has been calibrated on a
Returns:
A computation time order of magnitude estimation in milli-seconds.
- Type
- double