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
1
vote
4 answers

Convert pairwise distance table to list of distance for individuals in only two columns

I want to convert a pairwise distance table (observations in 2 columns) into a table with individuals listed instead (observations in 1 column). Essentially the info on pairwise relationships will be lost (which is irrelevant to my analysis anyways)…
1
vote
2 answers

Implementing the ruler function using `streamInterleave`

I am doing the homework of CIS 194. The problem is to implement the ruler function by using streamInterleave. The code looks like data Stream a = Cons a (Stream a) streamRepeat :: a -> Stream a streamRepeat x = Cons x (streamRepeat x) streamMap ::…
klabe
  • 455
  • 1
  • 5
  • 13
1
vote
2 answers

Selectively interleave two arrays

I would like to interleave two arrays, BUT only return pairs when a certain condition is met. As an example: first_array = [1, 2, 3, 4, 5, 6, 7, 8]; second_array = [, , , , 1, , 0, 1]; I need to return ONLY pairs where array-2 is non-null, in other…
Paul Clift
  • 169
  • 8
1
vote
4 answers

Interleave 4 byte ints to 8 byte int

I'm currently working to create a function which accepts two 4 byte unsigned integers, and returns an 8 byte unsigned long. I've tried to base my work off of the methods depicted by this research but all my attempts have been unsuccessful. The…
Philip DiSarro
  • 1,007
  • 6
  • 9
1
vote
1 answer

Interleave files with CMD using echo

How could I interleave files line by line with cmd.exe with help of read, grep, echo, etc? File1.txt with the context: Aaaaaaa1 Aaaaaaa2 Aaaaaaa3 File2.txt with the context: Bbbbbbb1 Bbbbbbb2 Bbbbbbb3 I would like to combine File1.txt and…
1
vote
2 answers

How to interleave 3 lists in OCaml

I am trying to take three lists of strings and have the code return a list interleaving the three. If the lists have unequal sizes then we use "-" to indicate a value is missing. For example: interleave3 ["1"; "2"; "3"] ["4"] ["5"; "6"] should…
Adrien Aacha
  • 109
  • 2
  • 8
1
vote
2 answers

Format a list into a string Python

I have this code that interleaves two words and outputs the new interleaved word as a tuple, but I need it too be a raw string. from itertools import zip_longest def interleave(word1,word2): return ''.join(list(map(str,…
1
vote
1 answer

instancing vs bufferGeometry vs interleavedBuffer

I need to draw thousands of points & lines witch have position, size and color attributes and they're position is dynamic (interactive in dragging). I was using buffer Geometry until now but now I had found two more things instancing interleaved…
1
vote
1 answer

Alternating threads in JMeter

I have made a selection form a huge amount of ID's, using the following query: select ID from [tabelname] where id > 0 and id < 31 This gives me 30 ID's to work with. What I would like to do now, is to use 3 threads, with the first one using ID 1,…
1
vote
3 answers

I need help about of audio 'interleave' on gstreamer-0.10

I'm trying to program an video/audio dubbing editor. Trying to mix serveral audio files in vala/genie. Using adder or interleave. I need traslate this gst-launch command to Genie or Vala code but using: 1.- Gst.Element.link 2.-…
txasatonga
  • 419
  • 2
  • 11
0
votes
1 answer

How to do combine 2 list without duplicate in Jmeter?

I want to make an automated order and payment. There's a list of Order and a list of Payment, and I want to use all of the payment for all the order. Order List : Order A Order B . . Payment list : Payment A Payment B . . I try using interleave…
akaiki
  • 1
0
votes
1 answer

How does this double loop list creation work?

The top answer to Interleave multiple lists of the same length in Python uses a really confusing syntax to interleave two lists l1 and l2: l1 = [1,3,5,7] l2 = [2,4,6,8] l3 = [val for pair in zip(l1, l2) for val in pair] and somehow you get l3 =…
0
votes
1 answer

Why Won't My Function Interleave Multiple Wave Files Correctly?

I am trying to translate a function that interleaves the data of a Wav file from Python to JavaScript using the Wavefile library in JavaScript. My translation of the function interleaves the files but does not output the correct Wav file. Here is my…
0
votes
0 answers

Short Circuiting && interleaving: what if the statement already checked changes

I have a question about the processing of statements and short-circuit vs no short-circuit (I do not know the exact name for no short-circuit). The scenario is the following. Imagine I have two statements p and q that are evaluated in the following…
Dgrm
  • 133
  • 1
  • 12
0
votes
0 answers

I need to combine 2 columns of data, based on the code in adjacent cell. along with a header

I need to interleave carton header codes and then the contents of the carton into a single column. Above that is a shipment header that starts the file. This is to be saved as a .txt file Input a is a single line of text made up of the date, invoice…