trans(soil.spec)
trans()所属R语言包:soil.spec
Spectral transformation
谱变换
译者:生物统计家园网 机器人LoveR
描述----------Description----------
trans transforms spectra either by calculation of (i) derivatives, (ii) continuum removal or (iii) wavelet transform. The used functions are (i) locpoly function in "KernSmooth" package, (ii) chull and approx functions in "KernSmooth" package and (iii) dwt function in "wavelets" package , respectively.
trans变换光谱可以通过计算(ⅰ)的衍生物,(ⅱ)连续除去或(iii)小波变换。使用的功能(我)locpoly的功能"KernSmooth"包,(二)chull和approx"KernSmooth"包和功能(三)<X >功能dwt包,分别。
用法----------Usage----------
trans(raw, tr = "derivative", order = 1, gap = 21)
## S3 method for class 'trans':
plot(x,...)
参数----------Arguments----------
参数:raw
a matrix containing the raw spectra.
矩阵中的原始光谱。
参数:tr
a character naming the transformation method. See details.
字符命名的变换方法。查看详细信息。
参数:order
an integer between 0 and 3 giving the order of derivative. The value 0 performs smoothing based on the gap.
给出的顺序的衍生物,在0和3之间的整数。 0值进行平滑的基础上的gap。
参数:gap
an integer between 1 and 30 defining the smoothing interval in wavebands.
在1和30之间的整数定义波段的平滑化的时间间隔。
参数:x
an object of class "trans".
对象类"trans"。
参数:...
additional arguments.
其他参数。
Details
详细信息----------Details----------
spec.type uses for spectral transformation (i) the locpoly function in KernSmooth package for derivative calculation, (ii) the chull and approx functions in "KernSmooth" package for continuum removal and (iii) the dwt function in wavelets package for extraction of wavelet coefficients. Experiences showed for wavelet decomposition that the best ratio of prediction performance and sparse spectral representation is reached when all 128 wavelet coefficients from decomposition level three are taken.
spec.type用于谱变换(I)locpoly KernSmooth包导数的计算功能,(ii)本chull和approx函数<X >包连续去除及(iii)"KernSmooth"功能dwt包中提取的小波系数。经验表明,对于小波分解时达到128个小波系数分解三级采取的最佳配比预测的性能和稀疏的谱表示。
Possible options for tr are "derivative", "continuum removed" or "wavelet transformed".
可能的选项tr是"derivative","continuum removed"或"wavelet transformed"。
A graph is returned showing the raw and transformed spectra for comparison. Its the same output than from plot.trans.
图是返回的原料和转化的光谱进行比较。它的输出比从plot.trans。
值----------Value----------
trans returns a list with class "trans" containing the following components: <table summary="R valueblock"> <tr valign="top"><td>raw</td> <td> a matrix containing the raw spectra.</td></tr> <tr valign="top"><td>trans</td> <td> a matrix containing the transformed spectra.</td></tr> <tr valign="top"><td>transformation</td> <td> a character naming the transformation method.</td></tr> </table>
trans返回一个列表类"trans"包含以下组件:<table summary="R valueblock"> <tr valign="top"> <TD> raw</ TD> < TD>包含原始光谱矩阵。</ TD> </ TR> <tr valign="top"> <TD>trans </ TD> <td>一个矩阵包含转换后的光谱。</ TD > </ TR> <tr valign="top"> <TD>transformation </ TD> <td>一个字符命名的变换方法。</ TD> </ TR> </ TABLE>
(作者)----------Author(s)----------
Thomas Terhoeven-Urselmans
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|