distribution

Why are some files not correctly installed when installing via TestFlight?

戏子无情 提交于 2019-12-11 01:32:09
问题 I distribute my iOS apps to my client with TestFlight for beta-testing. The problem is that we both experienced weird problems/behaviors with these apps when installing from TestFlight, which were fixed when uninstalling/reinstalling the apps (still from TestFlight). I don't see anything in my code explaining why a uninstall/reinstall is required (no CoreData migrations, no change in file storage usage, or other things like this). I'm quite confident that things will go better for end users

Splitting data and fitting distributions efficiently

ぐ巨炮叔叔 提交于 2019-12-11 00:44:37
问题 For a project I have received a large amount of confidential patient level data that I need to fit a distribution to so as to use it in a simulation model. I am using R. The problem is that I need is to fit the distribution to get the shape/rate data for at least 288 separate distributions (at least 48 subsets of 6 variables). The process will vary slightly between variables (depending on how that variable is distributed) but I want to be able to set up a function or loop for each variable

VB.net app without installation

独自空忆成欢 提交于 2019-12-11 00:43:56
问题 Is it possible to create a VB.Net application which users can just run without installing it first. If not, is it possible in another .Net language. If not, how IS it possible :) PS: The application only has to run under Windows (>= XP). 回答1: If they have the .NET Framework installed (the version of it that you developed it), they only need the .exe. You can find the .exe file in the bin directory of your projects folder in your Visual Studio workspace. If they do not have the framework

How can I use scipy optimization to find the minimum chi-squared for 3 parameters and a list of data points?

穿精又带淫゛_ 提交于 2019-12-11 00:34:44
问题 I have a histogram of sorted random numbers and a Gaussian overlay. The histogram represents observed values per bin (applying this base case to a much larger dataset) and the Gaussian is an attempt to fit the data. Clearly, this Gaussian does not represent the best fit to the histogram. The code below is the formula for a Gaussian. normc, mu, sigma = 30.845, 50.5, 7 # normalization constant, avg, stdev gauss = lambda x: normc * exp( (-1) * (x - mu)**2 / ( 2 * (sigma **2) ) ) I calculated the

Exponentially distributed random generator (log function) in python?

家住魔仙堡 提交于 2019-12-11 00:34:03
问题 I really need help as I am stuck at the begining of the code. I am asked to create a function to investigate the exponential distribution on histogram. The function is x = −log(1−y)/λ. λ is a constant and I referred to that as lamdr in the code and simply gave it 10. I gave N (the number of random numbers) 10 and ran the code yet the results and the generated random numbers gave me totally different results; below you can find the code, I don't know what went wrong, hope you guys can help me!

How are the XAP files structured?

大兔子大兔子 提交于 2019-12-10 23:32:23
问题 Questions: Are XAP files self-contained? Do they link in all DLLs I have referenced in the project? If I need to distribute my app, is all I have to do is hand someone the XAP file? 回答1: By default, yes. For alternatives, see answer 3. By default, all except the core DLLs installed by the runtime; it will contain anything from the SDK, Toolkit, 3rd party controls, or your own libraries. By default, yes. However, there is an option as of Silverlight 3 to package certain assemblies (for example

How should a certain percentage of evenly-distributed elements of a Python list be extracted?

谁都会走 提交于 2019-12-10 21:29:56
问题 I have a list of data points. For the full run of my program, I'll use all of the data points, but for testing of the code, I want to use only a small percentage of them in order that the program run in a short time. I do not want simply to take the first n elements of the list, though; I want to select an even distribution of the elements from the list. So, if I'm using 50% of the data points, I might want to select from the list of data points every second data points. Basically, I want to

Function returning random double with exponential distribution in range (a,b)

怎甘沉沦 提交于 2019-12-10 21:25:53
问题 I want to generate a random number from a to b . The problem is, the number has to be given with exponential distribution. Here's my code: public double getDouble(double low, double high) { double r; (..some stuff..) r = rand.NextDouble(); if (r == 0) r += 0.00001; return (1 / -0.9) * Math.Log(1 - r) * (high - low) + low; } The problem is that (1 / -0.9) * Math.Log(1 - r) is not between 0 and 1, so the result won't be between a and b . Can someone help? Thanks in advance! 回答1: I

Java: Generating a random numbers with a logarithmic distribution

╄→尐↘猪︶ㄣ 提交于 2019-12-10 19:05:00
问题 I am attempting to generate a random numbers with a logarithmic distribution. Where n=1 occurs half of the time, n=2 occurs a quarter of the time, n=3 occurs an eighth of the time, etc. int maxN = 5; int t = 1 << (maxN); // 2^maxN int n = maxN - ((int) (Math.log((Math.random() * t)) / Math.log(2))); // maxN - log2(1..maxN) System.out.println("n=" + n); Most of the time, I am getting the result I need, however once every so often, I get a value of n that is larger than maxN . Why is this so?

Random multivariate normal distribution

泄露秘密 提交于 2019-12-10 17:12:37
问题 I've run into a problem where I have to be able to generate a set of randomly chosen numbers of a multivariate normal distribution with mean 0 and a given 3*3 variance-covariance matrix in Java. Is there an easy way as to do this? 回答1: 1) Use a library implementation, as suggested by Dima. Or, if you really feel a burning need to do this yourself: 2) Assuming you want to generate normals with a mean vector M and variance/covariance matrix V, perform Cholesky Decomposition on V to come up with