public static void Saw(IStackList<object> stack) { if (stack.HasA<int>()) { var x = 0; var width = stack.Pop<int>(); var seq = SequenceFactory.From(() => Math.Pow(x++ % width, 2)); stack.Push(seq); } }
public static void Base(IStackList<object> stack) { var x = 0; var seq = SequenceFactory.From(() => x++); stack.Push(seq); }
public static void Para(IStackList<object> stack) { var x = 0; var seq = SequenceFactory.From(() => Math.Pow(x++, 2)); stack.Push(seq); }
public static void Noise(IStackList<object> stack) { var seq = SequenceFactory.From(Probability.Normal); stack.Push(seq); }