-
Notifications
You must be signed in to change notification settings - Fork 2
/
densityestimationprocessing.qmd
64 lines (46 loc) · 2.2 KB
/
densityestimationprocessing.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: "Density Estimation Processing"
author: "Cox Lab"
format:
html:
toc: true
toc-depth: 4
toc-expand: false
number-sections: true
number-depth: 4
editor: source
date: today
bibliography: references.bib
---
# General
* **Type:** - Matrix Processing
* **Heading:** - Basic (Processing)
* **Source code:** [DensityEstimationProcessing.cs](https://github.com/JurgenCox/perseus-plugins/blob/master/PerseusPluginLib/Basic/DensityEstimationProcessing.cs)
# Brief description
The density of data points in two dimensions is calculated. Each data point is smoothed out
by a suitable Gaussian kernel.
Output: A copy of the input matrix with two numerical columns added containing the density information.
```{=html}
<!-- This comment and the line above it must be preserved when editing this file!
The recommended sections are these, but they may be changed on a case by case basis.
===== Detailed description =====
===== Parameters =====
===== Theoretical background =====
===== Examples =====
Make changes only below this line! -->
```
# Parameters
## x
Selected expression columns for the first dimension of the generated density map(s) (default: first expression column in the matrix). Multiple columns can be chosen for each dimension leading to the creation of multiple density maps, but the number of columns have to be the same in both dimensions.
## y
Selected expression columns for the second dimension of the generated density map(s) (default: second expression column in the matrix). Multiple columns can be chosen for each dimension leading to the creation of multiple density maps, but the number of columns have to be the same in both dimensions.
## Number of points
The specified number of points defines the resolution of the density map (default: 300). It reflects the number of pixel per dimension.
## Distribution type
Each data point is smoothed out by a suitable Gaussian kernel, which is defined in the "Distribution type" (default: $P(x,y)$. The function can be selected out of a predefined list:
- $P(x,y)$
- $P(y|x)$
- $P(x|y)$
- $P(x,y)/(P(x)*P(y))$
# Parameter window
![Perseus pop-up window: Basic -\> Density estimation](images/basic-density_estimation-edited.png)