ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Analysis > Calculations > Setting up a calculation > The Function wizard : Specifying the trials

The Function wizard : Specifying the trials

In this step, you need to specify which trials you want the result of the function to be calculated for. You do this by specifying the first and last trials to be included.

For example, if you just want to calculate the result for the first 3 trials of a 6-trial acquisition stage, then you would select 'Acquisition' in the top list and type '1' in the box below it; you'd then select 'Acquisition' in the lower list and type '3' in the box below it.

You can also select trials that span more than one stage. For example, if you have a protocol which includes three stages (let's call them stages 1, 2 and 3 for simplicity), each of which includes 4 trials, then specifying 'Stage 1' and 'trial 3' in the top part, and 'Stage 3' and 'trial 2' in the bottom part would cause the following eight trials to be included in the result of the function:

Stage 1, trial 3

Stage 1, trial 4

Stage 2, trial 1

Stage 2, trial 2

Stage 2, trial 3

Stage 2, trial 4

Stage 3, trial 1

Stage 3, trial 2

  
 •The stages/trials you specify are inclusive 
 •If you don't specify a First trial, then ANY-maze will use the first trial in the 'First stage'. 
 •If you don't specify a Last trial, then ANY-maze will use the last trial in the 'Last stage'. 
 •You can specify trials which might not exist. For example, in a training stage, animals may stop being tested when they achieve a certain goal. Thus, some animals might have 3 trials, others 4 trials and others 5 or 6. If you specified that a function is to be calculated for trials 1 to 4 of the training stage, then an animal which only had 3 training trials won't have a trial 4 - in this case, the animal's result for the function will just include those trials it does have, i.e. 1 to 3. On the other hand, you might specify that the function is to be calculated for trials 4 to 6, in which case the result of the function for an animal which had only 3 trials will be undefined.  

See also:

 •An introduction to stages 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0631