Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

EuclideanSpace-class

Class "EuclideanSpace"


Description

The distribution-classes contain a slot where the sample space is stored. One typical sample space is the Euclidean Space in dimension k.

Usage

EuclideanSpace(dimension = 1)

Arguments

dimension

positive integer: dimension of the Euclidean space (default =1)

Objects from the Class

Objects could theoretically be created by calls of the form new("EuclideanSpace", dimension, name). Usually an object of this class is not needed on its own. EuclideanSpace is the mother-class of the class Reals, which is generated automatically when a univariate absolutly continuous distribution is instantiated.

Slots

dimension

Object of class "numeric": the dimension of the space, by default = 1

name

Object of class "character": the name of the space, by default = "Euclidean Space"

Extends

Class "rSpace", directly.

Methods

initialize

signature(.Object = "EuclideanSpace"): initialize method

liesIn

signature(object = "EuclideanSpace", x = "numeric"): Does a particular vector lie in this space or not?

dimension

signature(object = "EuclideanSpace"): returns the dimension of the space

dimension<-

signature(object = "EuclideanSpace"): modifies the dimension of the space

Author(s)

Thomas Stabla statho3@web.de,
Florian Camphausen fcampi@gmx.de,
Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de,
Matthias Kohl Matthias.Kohl@stamats.de

See Also

Examples

E <- EuclideanSpace(dimension = 2) 
dimension(E) # The dimension of this space is 2.
dimension(E) <- 3 # The dimension of this space is now 3.
liesIn(E,c(0,0,0)) # TRUE
liesIn(E,c(0,0)) # FALSE

distr

Object Oriented Implementation of Distributions

v2.8.0
LGPL-3
Authors
Florian Camphausen [ctb] (contributed as student in the initial phase --2005), Matthias Kohl [aut, cph], Peter Ruckdeschel [cre, cph], Thomas Stabla [ctb] (contributed as student in the initial phase --2005), R Core Team [ctb, cph] (for source file ks.c/ routines 'pKS2' and 'pKolmogorov2x')
Initial release
2019-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.