% Generated by roxygen2 (4.1.1): do not edit by hand % Please edit documentation in R/UpdateO.R \name{UpdateO} \alias{UpdateO} \title{UpdateO function undates the Orthogonal matrix and gets to the next step of the Markov chian .} \usage{ UpdateO(O, G_tilde, G_prior, D_prior, U, omega, omega0, allstep = "ALLPOSSIBLEPAIR", discrete = F, MAX_rejection = 1000, partition = 4e+05) } \arguments{ \item{G_tilde}{} \item{G_prior}{} \item{D_prior}{} \item{O:}{Current value of the Orthogonal matrix.} \item{U:}{matrix containing the response variables} \item{omega:}{current value of the omega matrix} \item{omega0:}{current value of the omega0 matrix} \item{allStep}{: logical . If TRUE then all pair of columns are updated to generate the output Orthogonal matrix. if TRUE the markov chain takes time but converges faster. If set to FALSE then only a randomly selected pair is updated.} \item{discrete:}{logical . If set to True discrete approximation is used without using the rejection sampler. If set to FALSE then a rejection sampler is used to update 1 pair of column and only in case of too many rejection the discrete approximation is used.} \item{Max_rejection:}{This function tries to use a Rejection sampler approach to get a sample from generalized Bingham distribution In the case of too many rejection the function uses a discrete approximation to generate approximate sample from the generalized Bingham distribution. Max_rejection is the maximum number of consecutive rejection before using the discrete sampler.} \item{partiton:}{In the case when the discrete approximation is used partition is the number of partition considered for the interval 0 to 2*Pi to get approximate disctere distribution to the Generalized bingham distribution.} } \description{ UpdateO function undates the Orthogonal matrix and gets to the next step of the Markov chian . }