diamond

hyppo.tools.diamond(n, p, noise=False, low=- 1, high=1)

Diamond simulation.

Diamond (X,Y)Rp×Rp: UU(1,1), VN(0,1)p, θ=π4,

X|d|=Ucos(θ)+Vsin(θ)+0.05pϵ|d| for d=1,...,pY|d|=Usin(θ)+Vcos(θ)
Parameters
  • n (int) -- The number of samples desired by the simulation (>= 5).

  • p (int) -- The number of dimensions desired by the simulation (>= 1).

  • noise (bool, default: False) -- Whether or not to include noise in the simulation.

  • low (float, default: -1) -- The lower limit of the uniform distribution simulated from.

  • high (float, default: 1) -- The upper limit of the uniform distribution simulated from.

Returns

x,y (ndarray of float) -- Simulated data matrices. x` and ``y have shapes (n, p) and (n, p) where n is the number of samples and p is the number of dimensions.