class_docstr: The class containing all get methods for dlm class.
  
  Methods:
      _getComponent: get the component if it is in dlm
      _getLatentState: get the latent state for a given component
      _getLatentCov: get the latent covariance for a given component
      _getComponentMean: get the mean of a given component
      _getComponentVar: get the variance of a given component
docstr: Get the variance of a given component.
  
  Args:
      name: the name of the component.
      filterType: the type of the variance to be returned.
                  could be "forwardFilter", "backwardSmoother" or
                  "predict".
      start: the start date for the variance to be returned.
      end: the end date to be returned.
  
  Returns:
      A list of variance.
docstr_tok: ["Get","the","variance","of","a","given","component",".","Args",":","name",":","the","name","of","the","component",".","filterType",":","the","type","of","the","variance","to","be","returned",".","could","be","``","forwardFilter","''",",","``","backwardSmoother","''","or","``","predict","''",".","start",":","the","start","date","for","the","variance","to","be","returned",".","end",":","the","end","date","to","be","returned",".","Returns",":","A","list","of","variance","."]
code: def _getComponentVar(self, name, filterType, start, end):
      """Get the variance of a given component.
  
      Args:
          name: the name of the component.
          filterType: the type of the variance to be returned.
                      could be "forwardFilter", "backwardSmoother" or
                      "predict".
          start: the start date for the variance to be returned.
          end: the end date to be returned.
  
      Returns:
          A list of variance.
      """
      end += 1
      comp = self._fetchComponent(name)
      componentCov = self._getLatentCov(
          name=name, filterType=filterType, start=start, end=end
      )
      result = []
      for k, i in enumerate(range(start, end)):
          if name in self.builder.dynamicComponents:
              comp.updateEvaluation(i)
          elif name in self.builder.automaticComponents:
              comp.updateEvaluation(i, self.padded_data)
          result.append(
              dot(
                  dot(comp.evaluation, componentCov[k]),
                  comp.evaluation.T,
              ).tolist()[0][0]
          )
      return result
  
imports: from numpy import dot
  from pydlm.core._dlm import _dlm
label_desc: Use image node_id 4 for calling the _dlmGet obj's underlying member method code with example usage: obj._getComponentVar(name, filterType, start, end) and returns: result