Spike Codec Library¶
Six codecs for neural data compression — BCI telemetry, neural probes, neuromorphic routing, real-time streaming, and general-purpose archival.
All codecs share compress(spikes) → (bytes, result) and
decompress(bytes, T, N) → spikes.
Registry¶
sc_neurocore.spike_codec.registry
¶
Codec registry: lookup by name, recommend by data characteristics.
Six codecs for different use cases:
isi — Baseline ISI + varint. Simple, general-purpose.
predictive — EMA predictor + XOR errors. Best for BCI implants.
delta — Inter-channel XOR. Best for correlated probe arrays.
streaming — Fixed-latency frames. Best for real-time decoding.
aer — Event list. Best for neuromorphic inter-chip routing.
All share the same API: compress(spikes) → (bytes, result), decompress(bytes, T, N) → spikes.
get_codec(name, **kwargs)
¶
Get a codec by name.
Parameters¶
name : str One of: 'isi', 'predictive', 'delta', 'streaming', 'aer'. **kwargs Passed to the codec constructor.
Returns¶
Codec instance with compress/decompress methods.
Source code in src/sc_neurocore/spike_codec/registry.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
list_codecs()
¶
List available codec names.
Source code in src/sc_neurocore/spike_codec/registry.py
62 63 64 | |
recommend_codec(n_channels, firing_rate, latency_ms=10.0, correlated=False, neuromorphic=False)
¶
Recommend a codec based on data characteristics.
Parameters¶
n_channels : int Number of recording channels. firing_rate : float Mean firing rate in Hz (per neuron). latency_ms : float Maximum acceptable latency in milliseconds. correlated : bool True if nearby channels are spatially correlated. neuromorphic : bool True if target is neuromorphic hardware (Loihi, SpiNNaker).
Returns¶
str — codec name
Source code in src/sc_neurocore/spike_codec/registry.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | |
ISI Codec (Baseline)¶
Inter-spike interval encoding with LEB128 variable-length integers. 50-200x compression on typical cortical firing rates.
sc_neurocore.spike_codec.codec
¶
ISI spike train compression with configurable entropy backend.
Per-neuron inter-spike interval encoding. Two backends: 'varint' (default): LEB128 variable-length integers. Simple, fast. 'huffman': Adaptive Huffman coding on ISI distribution. 30-60% smaller than varint on medium-to-dense data because frequent short ISIs get 2-4 bit codes.
For better compression on structured data, see PredictiveSpikeCodec (temporal prediction), DeltaSpikeCodec (inter-channel correlation), or AERSpikeCodec (event encoding).
SpikeCodec
¶
ISI spike train codec with configurable entropy backend.
Compression strategy: 1. Extract per-neuron spike times from binary raster 2. Compute inter-spike intervals (ISIs) per neuron 3. Encode ISIs with chosen backend: 'varint': LEB128 variable-length integers (fast, simple) 'huffman': Adaptive Huffman (30-60% smaller on dense data)
Each neuron is encoded independently. No inter-channel modeling. For inter-channel compression, use DeltaSpikeCodec.
Parameters¶
mode : str 'lossless' (exact reconstruction) or 'lossy' (preserve rates only). timing_precision : int For lossy mode: quantize spike times to this resolution. entropy : str 'varint' (default) or 'huffman'.
Source code in src/sc_neurocore/spike_codec/codec.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | |
compress(spikes)
¶
Compress a spike raster.
Parameters¶
spikes : ndarray of shape (T, N), binary (int8 or bool)
Returns¶
(compressed_bytes, CompressionResult)
Source code in src/sc_neurocore/spike_codec/codec.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | |
decompress(data, T, N)
¶
Decompress to spike raster.
Parameters¶
data : bytes T, N : int Original dimensions.
Returns¶
ndarray of shape (T, N), int8
Source code in src/sc_neurocore/spike_codec/codec.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
CompressionResult
dataclass
¶
Result of spike train compression.
Source code in src/sc_neurocore/spike_codec/codec.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
Predictive Codec (BCI Implants)¶
EMA predictor + XOR error coding. Only transmit surprises. Encoder and decoder share identical deterministic predictor state.
sc_neurocore.spike_codec.predictive_codec
¶
Predictive spike compression: XOR-based prediction error coding.
Architecture
- Maintain per-channel firing rate predictor (exponential moving average)
- At each timestep, predict spike pattern from learned rates
- XOR actual vs predicted → prediction error (surprise) bits
- ISI-compress only the error bits (sparser than raw spikes)
- Decoder runs identical predictor → lossless reconstruction
The predictor is deterministic given the same seed, so encoder and decoder stay synchronized without transmitting predictor state.
Neuralink context: 1024+ channels at 20 kHz produce ~200 Mbps raw. Typical cortical neurons fire at 0.5-5 Hz → >99.9% of bits are zeros. ISI coding alone gives 50-200x. Predictive coding removes the remaining structured correlations (bursts, oscillations, drift) for additional 2-5x on top of ISI baseline.
PredictiveSpikeCodec
¶
Predictive spike codec: compress prediction errors, not raw spikes.
Four predictor modes
'ema' (default): float EMA rate tracking + threshold comparison. 'lfsr': Q8.8 fixed-point rate + LFSR comparator. Bit-true with sc_bitstream_encoder.v — maps directly to Verilog RTL. 'context': Markov context predictor. Hashes last K spike states per channel, predicts from accumulated statistics. 'world_model': Learnable autoregressive predictor (LMS-trained). Predicts spike[t] from spike[t-K:t] via linear model with sigmoid activation. Learns cross-channel correlations.
Compression pipeline
- For each timestep t: a. predicted[t] = predictor.predict() b. error[t] = actual[t] XOR predicted[t] c. predictor.update(actual[t])
- ISI-compress the error matrix (sparser than raw spikes)
- Pack with header (predictor params for decoder sync)
Parameters¶
alpha : float EMA smoothing factor (ema mode). Ignored in lfsr/context mode. threshold : float Spike prediction threshold (ema mode). Ignored in lfsr/context mode. predictor : str 'ema', 'lfsr', or 'context'. alpha_q8 : int Q8.8 smoothing factor for lfsr mode. 1 = 1/256 ≈ 0.004. seed : int LFSR seed for lfsr mode (non-zero, 16-bit). context_bits : int Context history length for context mode (default 8 = last 8 spikes). base_mode : str 'lossless' or 'lossy' for the underlying ISI codec. timing_precision : int For lossy mode: quantize timing resolution.
Source code in src/sc_neurocore/spike_codec/predictive_codec.py
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 | |
compress(spikes)
¶
Compress spike raster using predictive error coding.
Parameters¶
spikes : ndarray of shape (T, N), binary (int8 or bool)
Returns¶
(compressed_bytes, PredictiveCompressionResult)
Source code in src/sc_neurocore/spike_codec/predictive_codec.py
399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 | |
decompress(data, T, N)
¶
Decompress to spike raster.
Runs identical predictor on decoder side. XOR(error, predicted) recovers original spikes. Predictor type auto-detected from header.
Parameters¶
data : bytes Compressed data from compress(). T, N : int Original dimensions.
Returns¶
ndarray of shape (T, N), int8
Source code in src/sc_neurocore/spike_codec/predictive_codec.py
496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 | |
PredictiveCompressionResult
dataclass
¶
Bases: CompressionResult
Compression result with predictive coding metrics.
Source code in src/sc_neurocore/spike_codec/predictive_codec.py
81 82 83 84 85 86 87 | |
Delta Codec (Neural Probes)¶
Inter-channel XOR residuals. Groups channels spatially, picks reference per group, encodes others as delta. Best for correlated probe arrays.
sc_neurocore.spike_codec.delta_codec
¶
Delta spike compression: exploit spatial correlation between channels.
Architecture
- Group channels by spatial proximity (configurable group_size)
- Within each group, pick reference channel (highest spike count)
- XOR all other channels against the reference
- ISI-compress: reference channels raw, delta channels as XOR residuals
- Header stores group layout for decoder
Target: neural probes (Neuropixels 384ch, Utah 96-128ch) where nearby electrodes record overlapping populations. Spatial correlation makes inter-channel XOR sparser than individual channels.
Also effective for any recording with population synchrony (bursts, oscillations, up/down states).
DeltaSpikeCodec
¶
Delta spike codec: compress inter-channel XOR residuals.
Channels are grouped spatially. Within each group, one reference channel is transmitted raw; others are XOR'd against the reference and ISI-compressed. When channels are correlated, the XOR residuals are much sparser than the raw data.
Parameters¶
group_size : int Channels per group. Larger groups = more sharing but weaker correlation with distant channels. 4-16 typical for probes. mode : str 'lossless' or 'lossy' for the underlying ISI codec. timing_precision : int For lossy mode: quantize timing resolution.
Source code in src/sc_neurocore/spike_codec/delta_codec.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
compress(spikes)
¶
Compress spike raster using inter-channel delta coding.
Parameters¶
spikes : ndarray of shape (T, N), binary (int8 or bool)
Returns¶
(compressed_bytes, DeltaCompressionResult)
Source code in src/sc_neurocore/spike_codec/delta_codec.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
decompress(data, T, N)
¶
Decompress delta-coded spike raster.
Parameters¶
data : bytes T, N : int Original dimensions.
Returns¶
ndarray of shape (T, N), int8
Source code in src/sc_neurocore/spike_codec/delta_codec.py
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
DeltaCompressionResult
dataclass
¶
Bases: CompressionResult
Compression result with delta coding metrics.
Source code in src/sc_neurocore/spike_codec/delta_codec.py
35 36 37 38 39 40 41 42 | |
Streaming Codec (Real-Time)¶
Fixed-latency, independently decodable frames. Each time window is a self-contained frame with bounded worst-case latency.
sc_neurocore.spike_codec.streaming_codec
¶
Streaming spike compression with bounded latency per window.
Architecture
- Divide spike raster into fixed-size time windows (e.g. 20 samples = 1ms at 20kHz)
- Each window compressed independently as a frame
- Frames are self-contained: no dependency on past frames
- Bounded worst-case latency: window_size / sample_rate
- Frame format: frame_header + per-channel spike bitmask
Within each window, channels are packed as bitmasks (one bit per timestep). For window_size=20, each channel needs 20 bits = 3 bytes. Silent channels are run-length encoded (skip count). Active channels store raw bitmask.
Target: real-time BCI decoding where latency matters more than compression ratio. Also suitable for online spike sorting and closed-loop experiments.
StreamingSpikeCodec
¶
Streaming spike codec: fixed-latency, independently decodable frames.
Each time window is compressed as a self-contained frame. No inter-frame dependencies. Worst-case latency = window_size samples.
Parameters¶
window_size : int Samples per frame. 20 = 1ms at 20kHz (typical BCI). Smaller = lower latency but less compression.
Source code in src/sc_neurocore/spike_codec/streaming_codec.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 | |
compress(spikes)
¶
Compress spike raster into independently decodable frames.
Parameters¶
spikes : ndarray of shape (T, N), binary
Returns¶
(compressed_bytes, StreamingCompressionResult)
Source code in src/sc_neurocore/spike_codec/streaming_codec.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | |
decompress(data, T=0, N=0)
¶
Decompress streaming frames to spike raster.
T and N are read from the header if not provided (or if 0).
Parameters¶
data : bytes T, N : int (optional, read from header)
Returns¶
ndarray of shape (T, N), int8
Source code in src/sc_neurocore/spike_codec/streaming_codec.py
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | |
compress_frame(window)
¶
Compress a single time window (for real-time streaming).
Parameters¶
window : ndarray of shape (W, N), binary
Returns¶
bytes — single frame, independently decodable
Source code in src/sc_neurocore/spike_codec/streaming_codec.py
224 225 226 227 228 229 230 231 232 233 234 235 | |
decompress_frame(frame)
¶
Decompress a single frame.
Parameters¶
frame : bytes
Returns¶
ndarray of shape (W, N), int8
Source code in src/sc_neurocore/spike_codec/streaming_codec.py
237 238 239 240 241 242 243 244 245 246 247 248 249 | |
StreamingCompressionResult
dataclass
¶
Bases: CompressionResult
Compression result with streaming codec metrics.
Source code in src/sc_neurocore/spike_codec/streaming_codec.py
35 36 37 38 39 40 41 42 43 | |
AER Codec (Neuromorphic)¶
Address-Event Representation: compact event stream with delta-coded
timestamps. Compatible with comm.aer_udp protocol. O(n_spikes) bytes.
sc_neurocore.spike_codec.aer_codec
¶
AER spike compression with adaptive density handling.
Architecture
- Measure spike density
- If density <= 50%: encode spike events (standard AER)
- If density > 50%: invert matrix, encode silence events (O(n_gaps) bytes when most channels are firing)
- Delta-code timestamps, variable-width neuron IDs
Compatible with the AER-over-UDP protocol in comm/aer_udp.py.
Target: neuromorphic chip-to-chip (Loihi, SpiNNaker, BrainScaleS), event cameras (DVS), and event-driven simulators.
AERSpikeCodec
¶
AER spike codec: event-list encoding for sparse spike data.
Converts spike raster (T, N) to a compact stream of (timestamp, neuron_id) events. Delta-encodes timestamps for further compression.
Parameters¶
timestamp_bits : int Bits for delta-coded timestamps. 16 = max gap of 65535 samples. Larger windows between spikes use escape codes. neuron_bits : int Bits for neuron ID. Auto-sized from N if 0.
Source code in src/sc_neurocore/spike_codec/aer_codec.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
compress(spikes)
¶
Compress spike raster to AER event stream.
Parameters¶
spikes : ndarray of shape (T, N), binary
Returns¶
(compressed_bytes, AERCompressionResult)
Source code in src/sc_neurocore/spike_codec/aer_codec.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | |
decompress(data, T=0, N=0)
¶
Decompress AER event stream to spike raster.
Parameters¶
data : bytes T, N : int (optional, read from header if 0)
Returns¶
ndarray of shape (T, N), int8
Source code in src/sc_neurocore/spike_codec/aer_codec.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
AERCompressionResult
dataclass
¶
Bases: CompressionResult
Compression result with AER codec metrics.
Source code in src/sc_neurocore/spike_codec/aer_codec.py
33 34 35 36 37 38 39 | |
Waveform Codec (Raw Electrode)¶
End-to-end raw waveform compression: spike detection + template matching + background LFP compression. 24x on 1024-channel Neuralink-scale data. Spike timing is lossless. Fits in Bluetooth uplink.
sc_neurocore.spike_codec.waveform_codec
¶
End-to-end neural waveform compression.
Full pipeline from raw 10-bit ADC samples to compressed bytes
- Threshold-crossing spike detection
- Spike timing → binary raster → PredictiveSpikeCodec (existing)
- Spike waveform snippets → template library + residuals
- Background signal → delta encoding + quantization
This is what Neuralink actually needs: compress raw electrode data, not pre-sorted binary rasters. The combined pipeline targets >50x on raw 10-bit waveforms while preserving both spike timing and waveform shape for downstream decoding.
Operates on (T, N) int16 arrays (10-bit ADC values in int16 container).
WaveformCodec
¶
End-to-end neural waveform codec.
Pipeline: detect → separate → compress each component optimally.
Parameters¶
threshold_sigma : float Spike detection threshold in units of per-channel noise sigma. Typical: 4.0-5.0 (4 sigma catches ~99.99% of noise). snippet_samples : int Waveform samples to extract around each spike (before + after peak). max_templates : int Maximum number of spike waveform templates to maintain. template_threshold : float Correlation threshold for template matching (0-1). quantize_bits : int Background signal quantization (fewer bits = more compression).
Source code in src/sc_neurocore/spike_codec/waveform_codec.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | |
compress(waveform)
¶
Compress raw electrode waveform.
Parameters¶
waveform : ndarray of shape (T, N), int16 or float Raw ADC samples. T = timesteps, N = channels.
Returns¶
(compressed_bytes, WaveformCompressionResult)
Source code in src/sc_neurocore/spike_codec/waveform_codec.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |
WaveformCompressionResult
dataclass
¶
Result of waveform compression.
Source code in src/sc_neurocore/spike_codec/waveform_codec.py
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |