Scipy Python/ get pdf


 
Thread Tools Search this Thread
Top Forums Programming Scipy Python/ get pdf
# 1  
Old 01-20-2010
Scipy Python/ get pdf

Hi all

I'm just starting usign scipy with python, really powerfull.
It comes with some many functions but I'm not able to solve my problem.

I have an array x and i need to find a probability density function (pdf) from data.
does anyone know how to do that? (i've done it evaluating first the cdf, but it doen't look really efficient)

Thanks

D.
# 2  
Old 03-20-2010
There is a source here, with a specific reference to SciPy:
Kernel density estimation - Wikipedia, the free encyclopedia
Or you could roll your own pdf by constantly doing a lookup of the amount of points smaller than a scalar x and divide by the total amount of points. This is similar to your approach, but as you say quite inefficient if you need the pdf values quite frequently.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Programming

[python] merge pdf files.

First off I am very new to python but not to scripting I have done a lot of bash scripting. I need to create a python script for work that will combine multiple pdf files into one pdf file and archive both the combined file and the original pdf files. So we receive zip files from a client... (6 Replies)
Discussion started by: SaltCityScripts
6 Replies

2. Programming

Create a C source and compile inside Python 1.4.0 to 3.7.0 in Python for ALL? platforms...

Hi all... As you know I like making code backwards compatible for as many platforms as possible. This Python script was in fact dedicated for the AMIGA A1200 using Pythons 1.4.0, 1.5.2, 1.6.0, 2.0.1, and 2.4.6 as that is all we have for varying levels of upgrades from a HDD and 4MB FastRam... (1 Reply)
Discussion started by: wisecracker
1 Replies

3. Windows & DOS: Issues & Discussions

How to execute python script on remote with python way..?

Hi all, I am trying to run below python code for connecting remote windows machine from unix to run an python file exist on that remote windows machine.. Below is the code I am trying: #!/usr/bin/env python import wmi c = wmi.WMI("xxxxx", user="xxxx", password="xxxxxxx")... (1 Reply)
Discussion started by: onenessboy
1 Replies

4. Shell Programming and Scripting

Converting secured pdf files to pdf using acroread

Does anybody have idea of Converting secured pdf files to pdf using acroread ? ---------- Post updated at 04:49 PM ---------- Previous update was at 04:44 PM ---------- This file is not password protected. (4 Replies)
Discussion started by: Soham
4 Replies

5. Shell Programming and Scripting

**python** unable to read the background color in python

I am working on requirement on spreadsheet in python scripting. I have a spreadsheet containing cell values and with background color. I am able to read the value value but unable to get the background color of that particular cell. Actually my requirement is to read the cell value along... (1 Reply)
Discussion started by: giridhar276
1 Replies

6. Shell Programming and Scripting

PDF Script to extract PDF Links MOD in Need

In here we have a script to extract all pdf links from a single page.. any idea's in how make this read instead of a page a list of pages.. and extract all pdf links ? #!/bin/bash # NAME: pdflinkextractor # AUTHOR: Glutanimate (http://askubuntu.com/users/81372/), 2013 #... (1 Reply)
Discussion started by: danielldf
1 Replies

7. UNIX for Dummies Questions & Answers

Numpy and scipy installatin to unix server

Hello, i very need to install numpy and scipy packages to pyhton on my unix server. All my tries was unssuccesalbe. Can anybody tell me how can resolve my problem. (6 Replies)
Discussion started by: daggeto
6 Replies

8. Shell Programming and Scripting

Perl - Convert html to pdf - PDF::FromHTML

Hi, I am trying to convert html to pdf using perl module PDF::FromHTML, am getting the error as given below. not well-formed (invalid token) at line 2, column 17, byte 56 at C:/Perl/lib/XML/Parser.pm line 187 at C:/Perl/site/lib/PDF/FromHTML.pm line 140 The perl code is as given... (2 Replies)
Discussion started by: DILEEP410
2 Replies
Login or Register to Ask a Question