Safe Haskell | None |
---|

- arrange :: (Storable v, C v) => ChunkSize -> T Int (T v) -> T v
- arrangeAdaptive :: (Storable v, C v) => ChunkSize -> T Int (T v) -> T v
- arrangeList :: (Storable v, C v) => ChunkSize -> T Int (T v) -> T v
- addShiftedMany :: (Storable a, C a) => ChunkSize -> [Int] -> [T a] -> T a
- addShifted :: (Storable a, C a) => ChunkSize -> Int -> T a -> T a -> T a
- arrangeEquidist :: (Storable v, C v) => ChunkSize -> T Int (T v) -> T v
- addToBuffer :: (Storable a, C a) => Vector s a -> Int -> T a -> ST s (Int, T a)
- addChunkToBuffer :: (Storable a, C a) => Vector s a -> Int -> Vector a -> ST s ()
- unsafeAddChunkToBuffer :: (Storable a, C a) => Vector s a -> Int -> Vector a -> ST s ()
- unsafeAddChunkToBufferFoldr :: (Storable a, C a) => Vector s a -> Int -> Vector a -> ST s ()
- addToBufferFoldr :: (Storable a, C a) => Vector s a -> Int -> T a -> ST s (Int, T a)
- addToBufferSwitchL :: (Storable a, C a) => Vector s a -> Int -> T a -> ST s (Int, T a)

# Documentation

:: (Storable v, C v) | |

=> ChunkSize | |

-> T Int (T v) | A list of pairs: (relative start time, signal part), The start time is relative to the start time of the previous event. |

-> T v | The mixed signal. |

Chunk sizes are adapted to the time differences. Explicit ChunkSize parameter is only required for zero padding. Since no ST monad is needed, this can be generalized to Generic.Signal.Transform class.

:: (Storable v, C v) | |

=> ChunkSize | |

-> T Int (T v) | A list of pairs: (relative start time, signal part), The start time is relative to the start time of the previous event. |

-> T v | The mixed signal. |

This function also uses the time differences as chunk sizes, but may occasionally use smaller chunk sizes due to the chunk structure of an input signal until the next signal starts.

:: (Storable v, C v) | |

=> ChunkSize | |

-> T Int (T v) | A list of pairs: (relative start time, signal part), The start time is relative to the start time of the previous event. |

-> T v | The mixed signal. |

The result is a Lazy StorableVector with chunks of the given size.

unsafeAddChunkToBuffer :: (Storable a, C a) => Vector s a -> Int -> Vector a -> ST s ()Source

chunk must fit into the buffer