624 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
69
views
1D Linear Value Noise Not Uniform Distribution; Is there a better noise function?
I have a simple 1D value noise function here:
public float ValueNoise1D(float x)
{
int l = Mathf.FloorToInt(x);
int r = l + 1;
float vl = hashToFloat(hash(l));
float vr = hashToFloat(...
0
votes
1
answer
150
views
Probability density function in histogram (gnuplot)
I have been working on a histogram plot in gnuplot but I would like to also include a probability density distribution on top of the histogram itself. Currently I am able to produce the figure below ...
0
votes
0
answers
108
views
Right-skewed and Mesokurtic distribution, is this possible in a dataset?
Example 1:
Kurtosis: leptokurtic
Skewness: right-skewed
Example 2:
Kurtosis: leptokurtic
Skewness: left-skewed
Example 3:
Kurtosis: platykurtic
Skewness: right-skewed
Example 4:
Kurtosis: platykurtic
...
0
votes
1
answer
47
views
Selecting a random rectangle but weighted by area:
While doing some exercises from Leetcode, I faced one problem that requires selecting a random integer point internal from a set of non-overlapping rectangles (https://leetcode.com/problems/random-...
0
votes
0
answers
38
views
rkdevine returns constant zero-valued simulations
I found that the rkdevine function, from the package kdevine, is returning constant zero-valued simulations when it shouldn't be the case. The function is meant to simulate from a a kdevine object, ...
-1
votes
1
answer
260
views
Probability Density Function with Ramachandran function of MDAnalysis in Python
My data consists with a trajectory of a MD we've done with a protein. My idea is to plot a Ramachandran graph with a color gradient. The has the information of all the frames in the trajectory, but ...
-1
votes
1
answer
115
views
How can I speed up the process of integrating a complex function?
import numpy as np
from scipy import integrate
import matplotlib.pyplot as plt
import datetime
start = datetime.datetime.now()
plt.rcParams['axes.grid'] = True
XX=[None, 11.3, 14.8, 7.6, 10.5, 12.7, 3....
0
votes
1
answer
324
views
How to use Python package "fastkde" to predict density at each given data point?
I am trying to use the package fastkde to estimate the density from a sample. The authors give an example
""" Demonstrate the first README example. """
import numpy as np
...
0
votes
2
answers
179
views
1D kernel estimation to compare PDF ratios: how to set tails?
Trying to create 1D kernels from data observations (weekly time points). I have been using the density() function from the stats R package. I am doing this so I can take the ratio of a treatment's pdf ...
1
vote
2
answers
88
views
Error Creating a GEV distribution in ggplot
I was trying to create GEV distributions with ggplot but received a persistent error. I was, however, successful creating these curves using the "plot" function, just like this:
library(evir)...
0
votes
0
answers
57
views
Generating Samples from Customized Distribution - Stuck with Range Limitation
I'm struggling to generate samples from a custom distribution defined by its CDF but facing a persistent limitation. The issue boils down to:
Limited Range of Samples: Despite having a theoretical ...
0
votes
1
answer
264
views
R: relative frequency in a table
I am working with quantil binomial and runif functions with R to simulate values.
My goal is get relative frequency with this function. The frequency that I get are ok, but the the relative frequency ...
1
vote
1
answer
89
views
How do you generate random variables according to a given continuous probability density function?
I'm trying to generate random variables according to three different probability density functions. Two of the functions are scaled normal distributions, μ = 260/3, σ = 100/3, scaled by 1.53666351546 ...
1
vote
0
answers
72
views
How can I estimate molecule positions based on a density map (similar to a minesweeper map)?
What I want:
My goal is to locate molecules based on some measurements. With some maths I managed to extract some kind of density map from the data, that indicates how many molecules contributed to ...
0
votes
1
answer
76
views
estimating conditional densities from expectile 'bundle' with expectreg
(please tag 'expectreg' - don't have the rep)
This framework and package seems to exist more or less in the shadows but I'm going to try my luck here.
I'm trying to estimate distribution Y|X non-...