Learn R Programming

ksm (version 1.0)

rotation_scaling: Rotation matrix with scaling for Monte Carlo integration

Description

Rotation matrix with scaling for Monte Carlo integration

Usage

rotation_scaling(ang, scale)

Value

a 2 by 2, or 3 by 3 scaling matrix, depending on inputs

Arguments

ang

vector of length 1 containing \(\theta \in [0, 2\pi]\) for \(d=2\), or of 3 containing elements \(\phi \in [0, 2*\pi)\), \(\theta \in [0, \pi]\) and \(\psi \in [0, 2\pi)\) for \(d=3\).

scale

vector of length 2 (\(d=2\)) or 3 (\(d=3\)), strictly positive