src/models/model-typedefs.js

  1. /**
  2. A unique identifier number of a cell on the grid. In classic CPM language, this is often
  3. referred to as 'type', but we use cellid to prevent confusion with the biological meaning
  4. of 'celltype' (which we call {@link CellKind} to prevent confusion).
  5.  
  6. The cellid must be a positive integer. The number 0 is reserved for the background.
  7. @typedef {number} CellId
  8. */
  9.  
  10. /**
  11. Index specifying the 'kind' of cell we are dealing with. This corresponds to the biological
  12. idea of a 'celltype'; so the CPM parameters used depend on the cellkind. Convention is that
  13. we store CPM parameters in number arrays param = number[], where param[i] is the parameter
  14. value for cellkind i.
  15.  
  16. This way, we can have multiple cells (each with their own {@link CellId}) of the same "cellkind", that
  17. get the same parameters (e.g. the same target volume). But we can also have multiple
  18. cellkinds on the grid, e.g. a small and a large cellkind.
  19.  
  20. The cellkind must be a positive integer. The number 0 is reserved for the background.
  21. @typedef {number} CellKind
  22. */