The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [discrete]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
45 views

Cumulative difference between discrete cumulative distribution functions

I would please like to ask for how to cumulate and plot the difference between cumulative disitribution functions (:=CDFs). Example: ...
5
votes
5answers
366 views

A replacement for NextPermutation in Combinatorica

Does anyone know of a replacement for NextPermutation in Combinatorica? The problem with loading Combinatorica is that it interferes with new functionality which I ...
6
votes
0answers
35 views

Is there a multidimensional FindSequenceFunction for multi-parameter pattern discovery?

FindSequenceFunction is a great tool for discovering formulas of sequences depending on a single index. OEIS is another tool for the case of integer sequences ...
5
votes
2answers
217 views

NonlinearModelFit when the fitting function produces a discrete list of values?

Short Version: I have a parameterized function (the model) that returns a list of values. I have data that I want to fit this model to, optimizing those parameters, where the list position in the data ...
1
vote
2answers
29 views

How to use a given list of values for a parameter in FindInstance?

How should I specify a discrete range for a parameter as one of the conditions in FindInstance? MemberQ/Element functions don't seem to work. For example, ...
0
votes
0answers
40 views

Harmonic amplitude spectrum

I have simulated an electrical machine in mathematica in discrete calculus. One of the results is three phase currents. My plotted answer is like below: Now I'm looking for harmonic amplitude ...
1
vote
0answers
22 views

Discrete variables in ParametricNDSolve [closed]

I'm trying to write a stochastic differential equation, using ParametricNDSolve and WhenEvents : ...
2
votes
0answers
32 views

BinarySearch Built-in and BinarySearch1 Self defined help [closed]

I am trying to create my own binary search to compare with the built-in function. I have referenced the docs, but the output is not correct and implies an issue. Please help with my function syntax ...
0
votes
1answer
74 views

Create Poisson distribution

I would like to make a phone call at the average arrival rate of λ = 300 [call / minute] per minute in the Poisson distribution of the telephone exchange and save it on the list. I don't know even if ...
3
votes
1answer
62 views

FindGeneratingFunction gives up too easily [closed]

I am trying to automatically find a generating function from the coefficients of a simple rational function using Mathematica's FindGeneratingFunction: ...
1
vote
1answer
202 views

How to define a function only for integers

I want to create a function which only accepts integers. if a value other than integers are given it should output zero. This is what I've tried so far. I'm trying to do some discrete time signal ...
6
votes
2answers
279 views

Record Statistics for Discrete Random Walks

I code a random walk of length 100 drawn from a LaplaceDistribution: Accumulate[RandomVariate[LaplaceDistribution[0, 1], 10000]] I am having trouble counting the ...
5
votes
1answer
65 views

Filling and transferring water between containers to obtain a desired volume

A classic class of math puzzles involves two irregular containers, $A$ and $B$, having known volumes $V_A$ and $V_B$ and an infinite source of water (from a spigot, say). You can fill either ...
5
votes
4answers
90 views

Plotting displacement values over defined region

I have a deformed 2D region of triangular Elements specified by their Nodes in $x$ and $y$ coordinate system. In addition, I ...
1
vote
1answer
61 views

Assignment to slots with inequality constraints

Suppose that I have a table A with each of its n columns corresponding to an "individual" and each of its m rows corresponding to a "task". The element of the jth ...
2
votes
1answer
187 views

Convert DiscretePlot3D to 2D plot with a Color Function

Observe the following wolfram Mathematica code: ...
1
vote
1answer
249 views

Flat line in Plot PDF of empirical data

I am currently trying to plot the probability density function PDF of an empirical data set. However, unfortunately, I always receive just a flat line in the ...
0
votes
1answer
77 views

Plot on a range by using restricted number of points [closed]

Suppose some function. I need to plot it on the given range, but using the finite number of points. After that I need to approximate obtained discrete plot by the curve. Is it possible to do this?
0
votes
0answers
117 views

How to fit one discrete data set to another with shifting and tilting?

I have two sets of discrete experimental data, each data set consists of many {x,y,z} positions. Both data sets have overlap region; you can merge both data sets together with shifting and tilting one ...
0
votes
1answer
146 views

Solving a system of differential equations including a discrete time function

Given a graph of $N$ nodes, I would like to solve the following set of differential equations: where $G_i'(r,s)\triangleq \frac{d G_i(r,s)}{ds} = \Big(1-L_i(t) - I_i(t)-B_i(t) - C_i(t)\Big)\sum_{j=1}^...
2
votes
2answers
89 views

Producing a particular sequence of integers recursively [closed]

I am supposed to write a function which computes the next integer in a sequence from the given one. For example: nextval[57] should give mm ...
1
vote
0answers
152 views

Find wavelet transform coefficients in L1 norm [closed]

For my masters task I have to perform a Haar wavelet transform using an L1 norm. But Mathematica's built-in wavelet library can work only with L2 norm space. I tried to do this: ...
1
vote
1answer
205 views

ListConvolve returns only one value

Generating my first function ...
2
votes
1answer
143 views

Multiple discrete RV convolutions performance

I have a discrete random variable with PDF of (just a simplified example) Piecewise[{{1/3, x == 5 || x == 10 || x == 15}}, 0] Actually, in my code this is a <...