{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schema.rtemis.org/decomposition/pca/v1/schema.json",
  "title": "rtemis PCAConfig",
  "description": "Principal Component Analysis. See setup_PCA.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "k": {
      "type": "integer",
      "minimum": 1,
      "default": 3,
      "description": "Number of components to extract."
    },
    "center": {
      "type": "boolean",
      "default": true,
      "description": "Center the data."
    },
    "scale": {
      "type": "boolean",
      "default": true,
      "description": "Scale the data."
    },
    "tol": {
      "type": ["number", "null"],
      "minimum": 0,
      "default": null,
      "description": "Magnitude tolerance below which components are omitted."
    }
  }
}
