Questions tagged [exponential]

Exponential can refer to a mathematics function, a curve / graph / dataset that follows the growth of that function, the exponential distribution in statistics, or a format to represent floats.

Exponential can refer to a mathematics function, a curve / graph / dataset that follows the growth of that function, the exponential distribution in statistics, or a format to represent floats.

Definitions from wikipedia:

888 questions
6
votes
1 answer

Fast SSE low precision exponential using double precision operations

I am looking for for a fast-SSE-low-precision (~1e-3) exponential function. I came across this great answer: /* max. rel. error = 3.55959567e-2 on [-87.33654, 88.72283] */ __m128 FastExpSse (__m128 x) { __m128 a = _mm_set1_ps (12102203.0f); /*…
ThreeStarProgrammer57
  • 2,906
  • 2
  • 16
  • 24
6
votes
2 answers

Kalman Filter vs Exponential Filter

I was wondering, what are the advantages and disadvantages of Kalman Filter and Exponential Filter? I have a multi-sensor fusion problem and I'm trying to decide which method to choose. I think, Kalman filter is more computationally complicated but…
Imelza
  • 301
  • 1
  • 7
  • 19
6
votes
2 answers

Python- What colormap scheme should I use for exponential-ish data?

The issue I have a plot I'm trying to make for trends of precipitation rates around the world using gridded data. I can make the plot itself fine, but the color range is giving me issues. I can't figure out how to make the colormap better fit my…
Cebbie
  • 1,741
  • 6
  • 23
  • 37
6
votes
4 answers

How to plot an exponential distribution

I want to plot an exponential distribution, something like this for example: But I only know how to simulate a data frame that follow a exponential distribution and plot it. data = data.frame(x=rexp(n = 100000, rate = .65)) m <- ggplot(data,…
Chubing
  • 187
  • 1
  • 3
  • 10
6
votes
1 answer

Raising number to fractional power java

I used the following code: double pow = 3/7; double num = 85; System.out.println(Math.pow(num, pow)); Expected result: 6.71... The output is 1.0 Any idea why?
Greg Peckory
  • 7,700
  • 21
  • 67
  • 114
6
votes
2 answers

Exponential decay curve fitting in numpy and scipy

I'm having a bit of trouble with fitting a curve to some data, but can't work out where I am going wrong. In the past I have done this with numpy.linalg.lstsq for exponential functions and scipy.optimize.curve_fit for sigmoid functions. This time I…
StacyR
  • 193
  • 1
  • 7
6
votes
3 answers

Why java converts double to exponential form

I have a problem. In my jsp page I have a textfield which accepts monetary value. When I enter a value such as 66777764 it becomes 6.6777764E7 in my textfield whenever there is a validation error. I know this won't affect the value saved in the…
kwan_ah
  • 1,061
  • 1
  • 12
  • 18
6
votes
1 answer

Simplifying the Big-O Complexity of this Exponential Algorithm

I have a counting algorithm for which I am trying to get a general big-o description. It is horribly nested and horribly exponential. Here it is: 1. For each T_i in T 2. For k = 1 to max_k 3. For each of 2^k*(n choose k) items 4. For each t in…
5
votes
1 answer

Does Haskell have some sort of number conversion to scientific format?

In JS we have Number.toExponential() which converts converts a number into its scientific notation (i.e : for 1000 -> "1e3"). I checked on hoggle but I can't seem to find it. Note : toExponential changes num -> string
user16878837
5
votes
1 answer

PHP: How do I can get data as string format from Excel data with scientific notation / exponential format?

I've a project in Yii2 that using PHPExcel library for read an Excel file. I've a Transaction Id column that contain data in General format cell. Screenshoot of my Excel file: You can see above, if I input 15 characters of number and put two dots…
Blackjack
  • 1,016
  • 1
  • 20
  • 51
5
votes
1 answer

Opposite directions of exponential hazard model coefficients ( with survreg and glm poisson)

I want to estimate an exponential hazards model with one predictor in R. For some reason, I am getting coefficients with opposite signs when I estimate it using a glm poisson with offset log t and when I just use the survreg function from the…
fmerhout
  • 164
  • 2
  • 11
5
votes
3 answers

How to generate exponential series of values with known initial and end values in Excel

In Excel, I want to generate 1000 rows of values, I know the initial and final values. For example, cell a1=1400 and cell a1000=1190, the total reduction is 15%, how to generate 1000 rows of values excel so that the values decrease…
user2563812
  • 219
  • 1
  • 2
  • 12
5
votes
3 answers

How to find string value is in exponential format in C#?

I want to find whether string has exponential format or not. Currently i am checking like below. var s = "1.23E+04"; var hasExponential = s.Contains("E"); But i know this is not the proper way. So can anyone please guide proper and fastest way to…
Selvamz
  • 362
  • 3
  • 16
5
votes
1 answer

Fitting distribution with fixed parameters in SciPy

Is it possible to fix parameters while fitting distributions in SciPy? For example, this code: import scipy.stats as st xx = st.expon.rvs(size=100) print st.expon.fit(xx, loc=0) results in non-zero location (loc). When some parameter is provided to…
Vladimir
  • 1,363
  • 2
  • 14
  • 28
5
votes
2 answers

Setinterval with exponential time decrease

I've got a mousedown event with a setinterval. I want the time of intervals to be variable. So the first one is 500, the second one 500/2 = 250, etc. Any tips? $plus.mousedown(function(e) { increment(20) timeout = setInterval(function(){ …
adnan
  • 1,385
  • 2
  • 17
  • 31
1 2
3
59 60