% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectra-munsell.R
\name{predict_xyz_from_spectra}
\alias{predict_xyz_from_spectra}
\title{Predict CIE XYZ tristimulus values from Vis-NIR reflectance spectra}
\usage{
predict_xyz_from_spectra(spectra, wavelengths)
}
\arguments{
\item{spectra}{Reflectance values, in 0..1 or 0..100. A numeric
vector (one sample), a numeric matrix (rows = samples,
cols = wavelengths) or a data.frame.}

\item{wavelengths}{Numeric vector of the wavelengths (in nm)
corresponding to the columns of \code{spectra}. Must cover
at least 400-700 nm; values outside 380-780 are ignored.}
}
\value{
A data.frame with columns \code{X}, \code{Y}, \code{Z},
        one row per sample.
}
\description{
Numerically integrates user reflectance against the CIE 1931 2-degree
Standard Observer color-matching functions, weighted by the D65
illuminant. Returns the tristimulus values \eqn{X, Y, Z} on the
standard scale where \eqn{Y = 100} for a perfect diffuse white.
}
\seealso{
\code{\link{predict_lab_from_spectra}},
         \code{\link{predict_munsell_from_spectra}}.
}
