Questions tagged [distribution]

This tag concerns statistical distributions, their implementations, and properties.

In scientific software for statistical computing and graphics, many common statistical distributions are supported. See the documentation from ?Distribution. Additionally, the CRAN task review for distributions lists numerous packages for addition features.

3139 questions
14
votes
1 answer

2 techniques for including files in a Python distribution: which is better?

I'm working on packaging a small Python project as a zip or egg file so that it can be distributed. I've come across 2 ways to include the project's config files, both of which seem to produce identical results. Method 1: Include this code in…
froadie
  • 79,995
  • 75
  • 166
  • 235
14
votes
4 answers

iOS: What are DISTRIBUTION provisioning profiles used for?

This might have been asked lots of times, but still I couldn't find info on why are they needed. I use DEVELOPER prov profiles to test apps on my device, that makes sense. The Provisioning Portal explains prov profiles like this: A Provisioning…
13
votes
5 answers

How to get ipa file from Xcode to run an iPhone app in real device?

My client asked me to get the review of the app on which I am working. So, I want to get the ipa file and mobile provision file from Xcode 4.2 to share my app to run in real device. I have a paid account of apple with me. Please tell me the…
Sanchit Paurush
  • 6,114
  • 17
  • 68
  • 107
13
votes
4 answers

Select a random item from a weighted list

I am trying to write a program to select a random name from the US Census last name list. The list format is Name Weight Cumulative line ----- ----- ----- - SMITH 1.006 1.006 1 JOHNSON 0.810 1.816 …
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
13
votes
1 answer

Python Earth Mover Distance of 2D arrays

I would like to compute the Earth Mover Distance between two 2D arrays (these are not images). Right now I go through two libraries: scipy (https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.wasserstein_distance.html) and pyemd…
Luca
  • 324
  • 2
  • 15
13
votes
2 answers

Fitting a normal distribution in R

I'm using the following code to fit the normal distribution. The link for the dataset for "b" (too large to post directly) is : link for b setwd("xxxxxx") library(fitdistrplus) require(MASS) tazur <-read.csv("b", header= TRUE,…
zkhan
  • 157
  • 1
  • 2
  • 10
13
votes
1 answer

Scala class file vs Java class file

Let's say I have this Hello.scala. object HelloWorld { def main(args: Array[String]) { println("Hello, world!") } } I could run 'scalac' to get HelloWorld.class and HelloWorld$.class. I can run using 'scala -classpath . Hello'. But I can't…
prosseek
  • 182,215
  • 215
  • 566
  • 871
13
votes
4 answers

Fitting a pareto distribution with (python) Scipy

I have a data set that I know has a Pareto distribution. Can someone point me to how to fit this data set in Scipy? I got the below code to run but I have no idea what is being returned to me (a,b,c). Also, after obtaining a,b,c, how do I…
alex
  • 131
  • 1
  • 1
  • 3
13
votes
3 answers

Using Inno Setup, how to import a certificate .cer file?

Can I use Inno Setup to import a .cer file (a certificate)? How can I do it? I need to create a certificate installer for Windows XP, Windows Vista and Windows 7.
13
votes
2 answers

New iOS team member: no valid signing identity

This is getting frustrating. I have two identities, one old, one new, and the latter should be used to deploy iOS apps to the App Store. I've created the new user, granted him admin access, then I created the app name and provisioning profiles.…
senseiwa
  • 2,369
  • 3
  • 24
  • 47
12
votes
2 answers

Creating a Java application that downloads its own dependencies

I'm interested in how to distribute a Java application that has a lot of dependencies (specified in a pom.xml in Maven). Obviously it would be possible to just package everything in one big .jar file. However that seems wasteful, since an update of…
mikera
  • 105,238
  • 25
  • 256
  • 415
12
votes
4 answers

Is there a way to shuffle an array so that no two consecutive values are the same?

I have an array of colors that will populate a pie chart to act as a game spinner. I don't want the same colors to appear next to each other, making one huge chunk in the circle. My array looks something like this: var colors = ["blue", "red",…
swiftyboi
  • 2,965
  • 4
  • 25
  • 52
12
votes
1 answer

Making fitdist plots with ggplot2

I fitted the normal distribution with fitdist function from fitdistrplus package. Using denscomp, qqcomp, cdfcomp and ppcomp we can plot histogram against fitted density functions, theoretical quantiles against empirical ones, the empirical…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
12
votes
2 answers

What's the best way to distribute Lua and libraries?

I'm looking at moving a program that currently embeds a Python interpreter to use Lua. With Python it's fairly easy to use modulefinder, compileall, and zipfile to make a nice tidy zip containing all the external libraries used. Does Lua have the…
SJML
  • 340
  • 4
  • 14
12
votes
6 answers

Python code for counting number of zero crossings in an array

I am looking to count the number of times the values in an array change in polarity (EDIT: Number of times the values in an array cross zero). Suppose I have an array: [80.6 120.8 -115.6 -76.1 131.3 105.1 138.4 -81.3 -95.3 89.2 -154.1 …
Rahul Murmuria
  • 428
  • 1
  • 3
  • 16