Skip to content

Commit

Permalink
Update MainActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
aqibsaeed committed Dec 30, 2019
1 parent bc0e46a commit 45b172c
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,13 @@ private void activityPrediction()
// Mean normalize the signal
normalize();

// Copy all x,y and z values to input_signal
for(int i = 0; i < N_SAMPLES; i++)
{
input_signal.set(i, x.get(i));
input_signal.set(i, y.get(i));
input_signal.set(i, z.get(i));
// Copy all x, y and z values to input_signal
int i = 0;
while (i < NUM_SAMPLES) {
input_signal.add(x.get(i));
input_signal.add(y.get(i));
input_signal.add(z.get(i));
i++;
}

// Perform inference using Tensorflow
Expand Down

0 comments on commit 45b172c

Please sign in to comment.