scipy
Use scipy.integrate.quad from within a cdef statement in Cython?
I am trying to speed up my Python by translating it into Cython. It uses the function scipy.integrate.quad, which requires a python callable as one of its arguments. Is there any way 开发者_StackOverf[详细]
2023-03-23 06:27 分类:问答Convolution computations in Numpy/Scipy
Profiling some computational work I\'m doing showed me that one bottleneck in my program was a function that basically did this (np is numpy, sp is scipy):[详细]
2023-03-23 06:09 分类:问答Python: handling a large set of data. Scipy or Rpy? And how?
In my python environment, the Rpy and Scipy packages are already installed. The pr开发者_开发技巧oblem I want to tackle is such:[详细]
2023-03-23 05:40 分类:问答Error while using the c code in python
I am using the following code which I have found online def c_int_binary_search(seq,t): # do a little type checking in Python[详细]
2023-03-21 22:59 分类:问答In SciPy, fancy indexing for csr_matrices
I am new to Python, so forgive me ahead of time if this is an elementary question, but I have searched around and have not found a satisfying answer.[详细]
2023-03-21 22:14 分类:问答How to fit polynomial to data with error bars
I am 开发者_如何学JAVAcurrently using numpy.polyfit(x,y,deg) to fit a polynomial to experimental data. I would however like to fit a polynomial that uses weighting based on the errors of the points.[详细]
2023-03-19 21:06 分类:问答Efficient method of calculating density of irregularly spaced points
I am attempting to generate map overlay images that would assist in identifying hot-spots, that is areas on the map that have high density of data points. None of the approaches that I\'ve tried are f[详细]
2023-03-19 16:00 分类:问答Equivalent of Matlab's cluster quality function?
M开发者_运维百科ATLAB has a nice silhouette function to help evaluate the number of clusters for k-means. Is there an equivalent for Python\'s Numpy/Scipy as well?I present below a sample silhouette i[详细]
2023-03-19 10:48 分类:问答Organizing an array of points in python
I need to input 3, 3D points as a matrix into this function; so I made a tuple like this one: initPoints = ([10,20,30],[5,15,25],[100,150,200])[详细]
2023-03-18 17:21 分类:问答python scipy Delaunay plotting point cloud
I have a pointlist=[p1,p2,p3...] where p1 = [x1,y1],p2=[x2,y2] ... I want to use scipy.spatial.Delaunay to do trianglation on these point clouds and then plot it[详细]
2023-03-16 06:55 分类:问答