Questions tagged [interleave]

Interleave - mix two or more digital signals by alternating between them.

To interleave is to mix two or more digital signals by alternating between them.

75 questions
0
votes
2 answers

A Python function that interleaves arbitrary number of lists as parameters

Edited for the sake of simplicity, as I have pin pointed the issue to 'argument unpacking'. I am trying to write a function that interleaves an arbitrary number of lists as parameters. All the lists have equal length. The function should return one…
Saurus
  • 79
  • 1
  • 7
0
votes
0 answers

Priority based real time interleaved scheduling problem

I was wondering if there is an existing problem in the literature that is similar to the following one: Suppose real-time streaming of signals. Each signal has a Time of arrival, duration, and a priority number. Two signals collide if they overlap…
Vap
  • 1
  • 1
0
votes
0 answers

How to interleave dataframes irregularly, using for-loop and conditionals?

I am trying to interleave (irregularly) two dataframes (each containing two columns of x1’s and x2’s), dependant upon the conditional relationship between the x1-x1 and x2-x2 in each dataframe. Using a single for loop, and a counter for each…
MarkD
  • 395
  • 3
  • 14
0
votes
1 answer

Use binary search to find interleaving sequence in C

I have two arrays, A and X, where A >= X. I want to find the max interleaving factor i for X^i such that X^i is a subsequence of A. For example, if A = [4,3,2,1,4,3,2,1,4,3,2,1,4,3,2,1], and X = [1,2,3], then i = 1, because X^1 = [1,2,3] and that…
quazi_moto
  • 449
  • 1
  • 3
  • 14
0
votes
1 answer

Interleaving array in C

I posted earlier, but I did not properly format or add my code. Say I have an int array x = [1,2,3]. Given a value i, I want to create an array x^i, such that, if i = 3, array x^i = [1,1,1,2,2,2,3,3,3]. If i = 5, array x^i =…
quazi_moto
  • 449
  • 1
  • 3
  • 14
0
votes
1 answer

Interleave numpy arrays with numeric comparison quickly

I have 2 Python lists of integers. The lists are possibly different sizes. One is a list of indices of all the maxima in a dataset, and the other is a list of indices of all the minima. I want to make a list of consecutive maxes and mins in order,…
hamx0r
  • 4,081
  • 1
  • 33
  • 46
0
votes
2 answers

How to "zip" several N-D arrays in Numpy?

The conditions are following: 1) we have a list of N-D arrays and this list is of unknown length M 2) dimensions each arrays are equal, but unknown 3) each array should be splitted along 0-th dimension and resulting elements should be grouped along…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
2 answers

Interleaving in OCaml

I am trying to create a function which interleaves a pair of triples such as ((6, 3, 2), ( 4, 5 ,1)) and create a 6-tuple out of this interleaving. I made some research but could understand how interleaving is supposed to work so I tried something…
Uysal M
  • 87
  • 6
0
votes
1 answer

Production of interleave video frames

I am developing a simple TV Character Generator software. I need to capture a window and write that pixels on a video card buffer in real-time. (the window has some animation and video and text.) It is working great now for progressive formats, But…
Maria
  • 344
  • 8
  • 30
0
votes
3 answers

Interleaving SAS Data Sets (by common patient number)

I need to interleave to SAS dataset, but only if the patient ID exist in both of them. In a merge statement I'd use "in" and "if", however, I need to stack the data. Data is equivalent in terms of variables. Any ideas?
0
votes
1 answer

Set interleaving in RTSP with Ip camera (Onvif standard)

I am working with an IP camera based on onvif standards. The scenario is the following one: The RTP port and HTTP port are 22554 and 22280 respectively. I have no problem with this, I reroute the traffic from A to B in those ports to reach the…
bilbinight
  • 217
  • 3
  • 15
-1
votes
1 answer

How to interleave two arrays into a new array

Creates a new List that holds the elements of list1 interleaved with the elements of list2. For example, if list1 holds <"over","river","through","woods"> and list2 holds <"the","and","the">, then the new list should…
TragicFlawz
  • 31
  • 1
  • 6
-1
votes
1 answer

Is interleaving processes of different programming languages useful?

I was wondering if it could be usefull to invoke different processes of different programming languages? For example, I have a java application. But I have some heavy calculations to do. So I write a programm in another none JVM language (C, Go,…
mrdlink
  • 266
  • 4
  • 15
-1
votes
3 answers

Unequally interleave two ruby arrays

I'd like to interleave two arrays without exactly alternating them. For example, given: a = [1,2,3,4,5,6,7,8,9] b = ['a','b','c'] I'd like to receive f = [1,2,'a',3,4,'b',5,6,'c',7,8,9] as the output. I want one element from b for every two…
XML Slayer
  • 1,530
  • 14
  • 31
-6
votes
3 answers

How to interleavedly duplicate an array in php?

For instance, I have an array: $x = array("a", "b", "c", "d", "e"); Is there any function to iterate all values of array and duplicate the values into: $x = array("a", "a", "b", "b", "c", "c", "d", "d", "e", "e"); I've not found any related…
1 2 3 4
5