getWnj-KernelWeight {quantspec} | R Documentation |
Get attribute Wnj
from a QSpecQuantity
.
Description
If the optional parameter j
is supplied, then only the j
th
element(s) of the vector will be returned, the entire vector otherwise.
Usage
## S4 method for signature 'KernelWeight'
getWnj(object, j)
Arguments
object |
|
j |
an integer or vector of indices specifying which |
Value
Returns levels attribute, as a vector of real numbers.
Examples
wgt <- kernelWeight(W=W1, N=2^3, bw=0.7)
getWnj(wgt)
getWnj(wgt, 2)
getWnj(wgt, c(2,7))
[Package quantspec version 1.2-4 Index]