Questions tagged [sequential]

1) Any of various questions about a succession of elements arranged in a series, usually with numeric identifiers or numeric indexing; 2) Implementation questions about sequential neural networks.

Overview

  • Any of various questions about a succession of elements arranged in a series, usually with numeric identifiers or numeric indexing.

  • Implementation questions about sequential neural networks.

930 questions
-2
votes
2 answers

Generating sequential ids within a nested R dataframe

My R dataframe of teachers is organized by schoolid, with a variable number of teachers in every school. I want to generate a sequential id number for each teacher in my dataset. Data looks like: SCHOOLID summer 102349 1 102349 1 102349 …
Suhas
  • 31
  • 2
-2
votes
2 answers

How to run javascript functions located in one function sequentially?

So I almost got this the way I want. I have .animate( some stuff) in the dealone() dealonedealer() functions. However, all the animations are happening at the same time since the function dealCards() doesn't care about waiting till one function is…
CRABOLO
  • 8,605
  • 39
  • 41
  • 68
-3
votes
2 answers

Split ascending integers when non-consecutive and assign sequences to values in another array

I have 2 flat arrays which are Leaders and Members. These arrays are populated while incrementing ids. I would like to associate one leader id with a sequence of consecutive ids in the members array. If there are too many leaders and not enough…
-3
votes
1 answer

Read len bytes of a file at offset and write it to FILETIME

Is there any possibility to read sth from a binary file when knowing only the size of the element that should be red and the offset (in hexa)? For example, if I want to read a FILETIME variable of 8 bytes, that has offset 0x001C, how do I approach…
-3
votes
1 answer

Convert Date into Factors for sequential analysis

I want to convert Date into factor for sequential analysis. I tried the following code: start_month <- '2019-01-01' elapsed_month <- function(end_date, start_date) { ed <- as.POSIXlt(end_date) sd <- as.POSIXlt(start_date) 12 * (ed$year -…
-3
votes
3 answers

Using machine learning to detect images based on single learning image

I have a use case where I have about 300 images out of 300 different items. I need machine learning to detect an item about once a minute. I've been using Keras with Sequential to detect images but I'm wondering what I should take into consideration…
-3
votes
1 answer

What is the equivalent hardware circuit to this code?

What does this code say? How do i interpret its circuit? module add(input logic clock, output logic[7:0] f); logic[7:0] a, b, c; always_ff @(posedge clock) begin a <= b + c; b = c + a; c = a + b; end assign f = c; …
-3
votes
1 answer

Excel/VBA to match 2 criteria, extracting last match in sequence and first match after broken sequence

I am starting to use VBA programing and am stumped on how to extract what I need from non-sequential data. I have tried using excel functions such as "VLookup", "INDEX(Match(", "MAX(If", "MIN(If" but can only find the first or last match and…
JosephA
  • 3
  • 2
-3
votes
1 answer

Sequential Byte-By-Byte Comparison

How would I use xor bitwise operations to perform byte by byte comparison in c? When comparing two files #include int main() { FILE *fp1, *fp2; int ch1, ch2; char fname1[40], fname2[40] ; printf("Enter name of first file…
humblebeast
  • 303
  • 3
  • 16
-3
votes
1 answer

sequential vs. binary search

Consider a file on disk containing 100 records. For both searches, what is the average number of comparisons needed to find a record in a file. number of comparisons if the record is not in the file the average number of comparisons if the record…
neuromancer
  • 53,769
  • 78
  • 166
  • 223
-3
votes
2 answers

How I do a subtraction 2 numbers in a sequential circuit?

I need to do a circuit in which I subtract 2 numbers. I believe I need to use the SUM and a sign bit, and some masks, but I cannot figure out how to put it together. [LATER EDIT] i tried to do "15-3". 15 in binary is 1111 3 in binary is 0011 I…
user2252231
  • 1
  • 1
  • 2
-3
votes
1 answer

casted integers to chars are not sequential

cout << key; cout << " " << temp_char << " - " << key_char << " " << (temp_char-key_char) << endl; /* * Function: StringToInteger * Usage: n = StringToInteger(s); */ int StringToInteger(string str) { int returnVal; …
forest.peterson
  • 755
  • 2
  • 13
  • 30
-4
votes
2 answers

IntStream, when should I really use sequential() method

When I do this: IntStream i = IntStream.of(5,6,7,1,2,3,4); //IntStream o = i.sequential(); i.forEach(System.out::println); I get the same response whether I call sequential or not.Then what are the use cases of sequential() method. Assuming I am…
-5
votes
2 answers

Parallel version much slower than the serial one in golang

I'm trying to code a parallel version of a simple algorithm that takes a point and a list of point and find which is the point of the list closer to the first one, to compare execution times with the serial version. The problem is that running the…
-5
votes
1 answer

Is vectorised data manipulation sequential (e.g R and MATLAB)?

Everybody is told to exploit vectorised programmes such as MATLAB and use indexing instead of a for loop. for e.g, in MATLAB, rather than setting all the element of a matrix to 0 in a double for loop, I could use M[1:N,1:N]=0;. My question relates…
1 2 3
61
62