docstr: Projects the data point being tested onto the principal components.
  
  Parameters
  ----------
  x
      The data point being tested.
docstr_tok: ["Projects","the","data","point","being","tested","onto","the","principal","components",".","Parameters","--","--","--","--","--","x","The","data","point","being","tested","."]
code: def _compute_linear_proj(self, x: torch.Tensor) -> torch.Tensor:
      """Projects the data point being tested onto the principal components.
  
      Parameters
      ----------
      x
          The data point being tested.
      """
      x_cen = x - self.means
      x_proj = x_cen @ self.pcs
      return x_proj
  
file_path: alibi-detect/alibi_detect/od/pytorch/mahalanobis.py
imports: import torch
  from alibi_detect.od.pytorch.base import TorchOutlierDetector
  from alibi_detect.utils._types import TorchDeviceType
label_desc: Use image node_id 6 for calling the MahalanobisTorch obj's underlying member method code with example usage: obj._compute_linear_proj(x) and returns: x_proj