import type { IGen } from "./api.js"; /** * Creates a new {@link IGen} using given `step` gen and `start` (default: 0) * value, producing: `y(t) = step(t) + y(t-1)`. * * @remarks * Note this is different to {@link sum}, which merely sums given argument gens * for each step, but doesn't for a reduction like this gen. * * @example * ```ts tangle:../export/addg.ts * import { addG, constant } from "@thi.ng/dsp"; * * console.log( * addG(constant(1), 10).take(5) * ); * // [ 10, 11, 12, 13, 14 ] * ``` * * @param step - * @param start - */ export declare const addG: (step: IGen, start?: number) => IGen; //# sourceMappingURL=addg.d.ts.map