make.comp(soil.spec)
make.comp()所属R语言包:soil.spec
Making spectra compatible
光谱兼容
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The function make.comp interpolates spectral absorbance/reflectance values to a new waveband vector by performing cubic spline interpolation using the spline function from the stats package.
函数make.comp光谱吸收/反射值进行插值到一个新的波段向量进行三次样条插值使用spline从stats包的功能。
用法----------Usage----------
make.comp(spec, new.waveb, repl.out.range = "FALSE", sav = "FALSE", save.path = "NULL", output.name = "Compatible spectral matrix", save.as = "workspace")
参数----------Arguments----------
参数:spec
a numerical matrix containing the spectra.
一个数值矩阵光谱。
参数:new.waveb
a numeric vector containing the new wavebands.
一个数值向量,包含新的波段。
参数:repl.out.range
a logical value indicating whether extrapolated values outside the waveband range of spec should be replaced by NA values.
一个逻辑值,该值指示是否spec应改为NA值的波段范围的外推值。
参数:sav
a logical value indicating whether the function output (original and compatible spectra) should be saved.
一个逻辑值,该值指示是否应保存功能输出(原装和兼容谱)。
参数:save.path
a character vector giving the path where to save the function output. If "NULL" (default), the current working directory is taken.
字符向量的路径保存功能输出。如果"NULL"(默认),当前的工作目录。
参数:output.name
a character vector giving the name of the function output in case sav is "TRUE".
字符向量的名称功能输出的情况下sav是"TRUE"。
参数:save.as
a character vector indicating the format of the saved output. "workspace" saves the function output named with output.name as workspace. "csv.file" saves the function output as csv-file.
一个字符向量指示的已保存的输出格式。 "workspace"命名output.name作为工作区的保存功能输出。 "csv.file"保存为csv文件输出的功能。
Details
详细信息----------Details----------
Some spectrometer adapt the wavenumber once in a while. Thus, waveband position might be different between spectra measured in different batches. This function makes the spectra compatible.
一些光谱仪适应的波数,一旦在一段时间内。因此,波段位置可能会有所不同光谱测量在不同批次之间。此功能可以使光谱兼容。
Cubic spline interpolation allows to extrapolate values outside the original waveband range. The user can choose if the extrapolated values are replaced by NA values.
三次样条插值可以推断值超出了原来的波段范围内。用户可以选择是否NA值的外推值被替换。
The column names of spec need to be numeric (no letters e.g. in the first position allowed).
spec的列名必须是数字(没有字母,例如允许在第一个位置)。
值----------Value----------
make.comp returns a list with class "make.comp" containing the following components: <table summary="R valueblock"> <tr valign="top"><td>original.spectra</td> <td> a matrix giving the original spectra.</td></tr> <tr valign="top"><td>compatible.spectra</td> <td> a matrix giving the compatible spectra.</td></tr> </table>
make.comp返回一个列表类"make.comp"包含以下组件:<table summary="R valueblock"> <tr valign="top"> <TD> original.spectra</ TD> < TD>矩阵提供原始光谱。</ TD> </ TR> <tr valign="top"> <TD>compatible.spectra </ TD> <td>一个矩阵给兼容光谱。</ TD > </ TR> </ TABLE>
(作者)----------Author(s)----------
Thomas Terhoeven-Urselmans
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|