View source: R/dataf.tecator.r
| dataf.tecator | R Documentation |
This dataset is a part of the original one which can be found at https://www.cmu.edu/dietrich/statistics-datascience/. For each peace of finely chopped meat we observe one spectrometric curve which corresponds to the absorbance measured at 100 wavelengths. The peaces are split according to Ferraty and Vieu (2006) into two classes: with small (<20) and large fat content obtained by an analytical chemical processing.
dataf.tecator()
The functional data as a data structure.
datafThe functional data as a list of objects. Each object is characterized by two coordinates.
argswavelength - a numeric vector of discretization points from 850 to 1050mm
valsabsorbance - a numeric vector of absorbance values
labelsThe classes of the objects: "small" (<20) and "large" fat content
Febrero-Bande, M and Oviedo de la Fuente, Manuel
https://www.cmu.edu/dietrich/statistics-datascience/
Ferraty, F. and Vieu, P. (2006). Nonparametric functional data analysis: theory and practice. Springer.
dataf.* for other functional data sets
plot.functional for building plots of functional data
## load the dataset
dataf = dataf.tecator()
## view the classes
unique(dataf$labels)
## access the 5th point of the 2nd object
dataf$dataf[[2]]$args[5]
dataf$dataf[[2]]$vals[5]
## plot the data
## Not run:
labels = unlist(dataf$labels)
plot(dataf,
xlab="Wavelengths", ylab="Absorbances",
main=paste("Tecator: < 20 red (", sum(labels == "small"), "),",
" >= 20 blue (", sum(labels == "large"), ")", sep=""),
colors = c("blue", "red"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.