mfGeometry | R Documentation |
R6 Class implementing manifold geometries
R6 Class implementing manifold geometries
An abstract mfGeometry
class implementing a set of methods, including
e.g. Exp- and Log-mappings, that are needed to define mfboost
families
in a concise and modular way.
The arguments of the methods are vectors, matrices
or arrays possibly holding additional attributes. Besides these methods, objects
of class mfGeometry
offer an active slot for the 'pole' which serves
as prototype for elements of the manifold. Children of this class
specify the geometry of interest, such as mfGeomEuclidean
,
mfGeomSphere
, mfGeomPlanarShape
, and
mfGeomPlanarSizeShape
.
y_
slot for a data object in the internal format
pole_
slot for a data object in the internal format
weights_
slot for inner product weights in the internal format
structure()
structure a vector containing the elements of the response
y
in long format in the internal format of the geometry.
mfGeometry$structure(y)
y
a numeric vector containing the elements of an object y in long format
unstructure()
inverse operation of structure
.
mfGeometry$unstructure(y_)
y_
an object in the internal format of the geometry
unstructure_weights()
convert internal inner product weights to a weight vector
matching the un-structered response y
in long format.
mfGeometry$unstructure_weights(weights_)
weights_
inner product weights in the internal format
align()
a function aligning y_
to y0_
primarly intended
for quotient geometries.
mfGeometry$align(y_, y0_ = private$.pole_)
y_
an object in the internal format of the geometry
y0_
an object in the internal format of the geometry
register()
a function registering y_
to a proper subset, say to
a subspace or an embedded submanifold.
mfGeometry$register(y_)
y_
an object in the internal format of the geometry
distance()
computes the distance or a vector of distances between objects.
mfGeometry$distance(y0_, y1_, ...)
y0_
an object in the internal format of the geometry
y1_
an object in the internal format of the geometry
...
other arguments.
exp()
the Riemannian Exp map mapping a tangent vector v_
at y_
to the manifold.
mfGeometry$exp(v_, y0_ = private$.pole_, ...)
v_
an object repesenting a tangent vector (internal format)
y0_
an object in the internal format of the geometry
...
other arguments.
log()
the inverse of the Riemannian Exp map.
mfGeometry$log(y_, y0_ = private$.pole_, ...)
y_
an object in the internal format of the geometry
y0_
an object in the internal format of the geometry
...
other arguments.
transport()
parallel transport of a tangent vector v0_
at y0_
to the tangent space at y1_
.
mfGeometry$transport(v0_, y0_, y1_, ...)
v0_
an object repesenting a tangent vector (internal format)
y0_
an object in the internal format of the geometry
y1_
an object in the internal format of the geometry
...
other arguments.
innerprod()
computes the inner product or a vector of inner products between objects.
mfGeometry$innerprod(v0_, v1_ = v0_, ...)
v0_
an object repesenting a tangent vector (internal format)
v1_
an object repesenting a tangent vector (internal format)
...
other arguments.
get_normal()
returns the normal vector (in unstructured format) to the
tangent space at a point y0_
considered as a linear subspace.
mfGeometry$get_normal(y0_ = private$.pole_, ...)
y0_
an object in the internal format of the geometry
...
other arguments.
validate()
function for validating structure of internal object y_
.
mfGeometry$validate(y_, ...)
y_
an object in the internal format of the geometry
...
other arguments.
clone()
The objects of this class are cloneable with this method.
mfGeometry$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.