Description Usage Arguments Details Value Author(s) See Also Examples
Functions for creating, extracting data from, and printing VSA objects.
1 2 3 4 5 6 |
what |
the type of vector wanted: one of
|
len |
the number of elements in the vector |
elts |
the raw elements for the vector |
vsatype |
the subclass of vsa: must be a character string for
which a function |
cnorm |
a logical value ( |
opnorm |
a logical value ( |
e1 |
a vsa vector |
x |
a vsa vector |
... |
additional arguments for |
values |
a logical value indicating whether or not to print the actual values elements of the vsa vector |
VSA objects can be of different types or classes. The vsa
package currently provides an implementation of real-valued HRR
vectors. Other possible types include binary vectors,
frequency-domain HRRs, and more.
The length and type of the vector created by newVec()
is
determined by the current settings for options("vsatype")
,
options("vsanorm")
, and options("vsalen")
.
newVec
generates a new vsa vector.
elts
returns the elements of a vsa vector as the most suitable R atomic class (usually double, but other possibilities are integer, raw (bytes), or complex).
Tony Plate tplate@acm.org
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.