Questions tagged [discrete-space]

21 questions
0
votes
1 answer

Creating discrete-time model

Hello can someone help me, what am I doing wrong in writing this expression into MATLAB. How do I make the z's negative? Here is my code: Nd=[-8 5 4 0 -1 -3 2]; Dd=[-0.0648 -0.1134 0.6184 -1.436 1.7 -1.6 1]; P=Nd;Q=Dd; H = tf(P,Q,0.1) Here is…
0
votes
1 answer

r/ combinatorial optimization function/package requiring minimal up-front work

I have a data frame consisting of names of preprocessing methods. *Impute* *Scale* naomit noscale knnimpute noscale naomit scale knnimpute scale In step one function g() executes the methods…
user2968765
  • 145
  • 1
  • 10
0
votes
0 answers

Sample from a discrete random distribution in Python

I was hoping to know if there is a command in numpy of scipy to pick an element of a data from a discrete random distribution. i.e., For example I have a discrete distribution x = (0.5, 0.3, 0.2) and I want to sample from y = (1, 2, 3)... >>>…
Nikki Mino
  • 309
  • 1
  • 2
  • 12
0
votes
1 answer

Outlier test in discrete survival analysis

I am trying to figure out how to do a proper test of outliers in a discrete survival analysis (I use a logistic regression). I find a several suggestions for the continuos survival analysis but nothing for the discrete ones. Suggestions to methods,…
0
votes
1 answer

100 Point discrete grid in R

I am trying to use for loops to solve a 100 point discrete grid, but it is totally freaking out right now. The code: space<-c(1:100) A<- 4 alpha<-0.3 beta<-0.98 vprime<-c(rep(0,100)) t_vj<-c(rep(0,100)) iterater<-function(space){ for(i in space){ …
0
votes
1 answer

Bezier curves in discrete domain

I know how to draw bezier curves from four control points. However, even if the control points are from 2D grids, the generated points are not neccessarily in 2D grid. Please help. How would I generate all the discrete bezier curve cordinates for a…
Dib
  • 317
  • 1
  • 4
  • 13
1
2