R/gen-MLE.R

Defines functions ConditionNumber_acc AsymptoticCI_acc RelativeStandardError_acc StandardError_acc CorrelationMatrix_acc CovarianceMatrix_acc FIM_acc so_MLE_set_ConditionNumber so_MLE_get_ConditionNumber so_MLE_create_AsymptoticCI so_MLE_set_AsymptoticCI so_MLE_get_AsymptoticCI so_MLE_create_RelativeStandardError so_MLE_set_RelativeStandardError so_MLE_get_RelativeStandardError so_MLE_create_StandardError so_MLE_set_StandardError so_MLE_get_StandardError so_MLE_create_CorrelationMatrix so_MLE_set_CorrelationMatrix so_MLE_get_CorrelationMatrix so_MLE_create_CovarianceMatrix so_MLE_set_CovarianceMatrix so_MLE_get_CovarianceMatrix so_MLE_create_FIM so_MLE_set_FIM so_MLE_get_FIM so_MLE_unref so_MLE_ref so_MLE_free so_MLE_copy so_MLE_new

# libsoc - Library to handle standardised output files
# Copyright (C) 2015 Rikard Nordgren
# 
# This file was autogenerated and should not be edited
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
# 
# his library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, see <http://www.gnu.org/licenses/>.

so_MLE_new <- function() {
	obj = .Call("r_so_MLE_new")
}

so_MLE_copy <- function(self) {
	.Call("r_so_MLE_copy", self)
}

so_MLE_free <- function(self) {
	.Call("r_so_MLE_free", self)
}

so_MLE_ref <- function(self) {
	.Call("r_so_MLE_ref", self)
}

so_MLE_unref <- function(self) {
	.Call("r_so_MLE_unref", self)
}

so_MLE_get_FIM <- function(self) {
	.Call("r_so_MLE_get_FIM", self)
}

so_MLE_set_FIM <- function(self, value) {
	.Call("r_so_MLE_set_FIM", self, value)
}

so_MLE_create_FIM <- function(self) {
	.Call("r_so_MLE_create_FIM", self)
}

so_MLE_get_CovarianceMatrix <- function(self) {
	.Call("r_so_MLE_get_CovarianceMatrix", self)
}

so_MLE_set_CovarianceMatrix <- function(self, value) {
	.Call("r_so_MLE_set_CovarianceMatrix", self, value)
}

so_MLE_create_CovarianceMatrix <- function(self) {
	.Call("r_so_MLE_create_CovarianceMatrix", self)
}

so_MLE_get_CorrelationMatrix <- function(self) {
	.Call("r_so_MLE_get_CorrelationMatrix", self)
}

so_MLE_set_CorrelationMatrix <- function(self, value) {
	.Call("r_so_MLE_set_CorrelationMatrix", self, value)
}

so_MLE_create_CorrelationMatrix <- function(self) {
	.Call("r_so_MLE_create_CorrelationMatrix", self)
}

so_MLE_get_StandardError <- function(self) {
	.Call("r_so_MLE_get_StandardError", self)
}

so_MLE_set_StandardError <- function(self, value) {
	.Call("r_so_MLE_set_StandardError", self, value)
}

so_MLE_create_StandardError <- function(self) {
	.Call("r_so_MLE_create_StandardError", self)
}

so_MLE_get_RelativeStandardError <- function(self) {
	.Call("r_so_MLE_get_RelativeStandardError", self)
}

so_MLE_set_RelativeStandardError <- function(self, value) {
	.Call("r_so_MLE_set_RelativeStandardError", self, value)
}

so_MLE_create_RelativeStandardError <- function(self) {
	.Call("r_so_MLE_create_RelativeStandardError", self)
}

so_MLE_get_AsymptoticCI <- function(self) {
	.Call("r_so_MLE_get_AsymptoticCI", self)
}

so_MLE_set_AsymptoticCI <- function(self, value) {
	.Call("r_so_MLE_set_AsymptoticCI", self, value)
}

so_MLE_create_AsymptoticCI <- function(self) {
	.Call("r_so_MLE_create_AsymptoticCI", self)
}

so_MLE_get_ConditionNumber <- function(self) {
	.Call("r_so_MLE_get_ConditionNumber", self)
}

so_MLE_set_ConditionNumber <- function(self, value) {
	.Call("r_so_MLE_set_ConditionNumber", self, value)
}

FIM_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			so_MLE_get_FIM(.self$.cobj)
		} else {
			if (!is(value, "matrix")) {
				stop("object must be of type 'matrix'")
			}
			so_MLE_set_FIM(.self$.cobj, value)
		}
	}
}

CovarianceMatrix_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			so_MLE_get_CovarianceMatrix(.self$.cobj)
		} else {
			if (!is(value, "matrix")) {
				stop("object must be of type 'matrix'")
			}
			so_MLE_set_CovarianceMatrix(.self$.cobj, value)
		}
	}
}

CorrelationMatrix_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			so_MLE_get_CorrelationMatrix(.self$.cobj)
		} else {
			if (!is(value, "matrix")) {
				stop("object must be of type 'matrix'")
			}
			so_MLE_set_CorrelationMatrix(.self$.cobj, value)
		}
	}
}

StandardError_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			so_MLE_get_StandardError(.self$.cobj)
		} else {
			if (!is(value, "data.frame")) {
				stop("object must be of type 'data.frame'")
			}
			so_MLE_set_StandardError(.self$.cobj, value)
		}
	}
}

RelativeStandardError_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			so_MLE_get_RelativeStandardError(.self$.cobj)
		} else {
			if (!is(value, "data.frame")) {
				stop("object must be of type 'data.frame'")
			}
			so_MLE_set_RelativeStandardError(.self$.cobj, value)
		}
	}
}

AsymptoticCI_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			so_MLE_get_AsymptoticCI(.self$.cobj)
		} else {
			if (!is(value, "data.frame")) {
				stop("object must be of type 'data.frame'")
			}
			so_MLE_set_AsymptoticCI(.self$.cobj, value)
		}
	}
}

ConditionNumber_acc <- function(value)
{
	if (!isnull(.self$.cobj)) {
		if (missing(value)) {
			so_MLE_get_ConditionNumber(.self$.cobj)
		} else {
			if (!is(value, "numeric")) {
				stop("object must be of type 'numeric'")
			}
			so_MLE_set_ConditionNumber(.self$.cobj, value)
		}
	}
}

so_MLE = setRefClass("so_MLE",
	fields=list(
		FIM = FIM_acc,
		CovarianceMatrix = CovarianceMatrix_acc,
		CorrelationMatrix = CorrelationMatrix_acc,
		StandardError = StandardError_acc,
		RelativeStandardError = RelativeStandardError_acc,
		AsymptoticCI = AsymptoticCI_acc,
		ConditionNumber = ConditionNumber_acc,
		.cobj = "externalptr"
	),
	methods=list(
		copy = function() {
			copy = so_MLE_copy(.self$.cobj)
			so_MLE$new(cobj=copy)
		},
		initialize = function(cobj) {
			if (missing(cobj)) {
				.cobj <<- so_MLE_new()
			} else {
				.cobj <<- cobj
			}
		},
		finalize = function() {
			so_MLE_unref(.self$.cobj)
		}
	)
)

Try the libsoc package in your browser

Any scripts or data that you put into this service are public.

libsoc documentation built on Feb. 3, 2022, 5:07 p.m.