Learn R Programming

ANOVA.TFNs (version 1.0)

means.vec: Computing means vector for each population

Description

This function computes the means of each population. It must be noted that the means of several TFNs is a TFN too.

Usage

means.vec(Data)

Arguments

Data

a matrix with \(dim=c(n, 4)\) and FANOVA.Data format.

Value

A matrix with dim=c(length(n), 3), where each of its rows show the mean of TF observation in relevant population.

See Also

FuzzyNumbers

Examples

Run this code
# NOT RUN {
data(Data)

means.vec(Data)

# }
# NOT RUN {
 # Computing the waighted mean of mean populations: 
# }
# NOT RUN {
data.. = ( means.vec(Data)[1,]*n(Data)[1] + 
	   means.vec(Data)[2,]*n(Data)[2] +
	   means.vec(Data)[3,]*n(Data)[3] ) / sum(n(Data))
round(data..,3)
# }

Run the code above in your browser using DataLab