# Class "interpolation" (distance to classes)

**URL:** <https://discourse.flucoma.org/t/class-interpolation-distance-to-classes/1903>\
**Category:** Usage Questions\
**Created:** [May 7, 2023, 12:34pm UTC](https://discourse.flucoma.org/t/class-interpolation-distance-to-classes/1903 "2023-05-07T12:34:08Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)\
**Post date:** [May 9, 2023, 12:17pm UTC](https://discourse.flucoma.org/t/class-interpolation-distance-to-classes/1903/10 "2023-05-09T12:17:01Z")

</div>

> [@rodrigo.constanzo](#):
>
> I plan on computing the means today to see if I can do something with that (step2 above).

Surely there’s a better way to do this, but I’ve:

- unpacked `fluid.dataset~` / `fluid.labelset~` to `dict`s
- `dict.unpack data:` just to get the data bits
- `push_to_coll` to move into `coll`-land
- use the label `coll` to fork the MFCC `coll` into a separate `coll` per class
- `pull_from_coll` back into `dict`-land and `load` into `fluid.dataset~`s (one per class)
- `tobuffer` the `fluid.dataset~`s to get them into `buffer~`s
- `fluid.bufstats~` to get the means per column (now channels)
- `fluid.buf2list @axis 1` to get the mean of each class

What a journey!

I could probably skip the `coll` stuff and operate on the `dict` versions, I just know the `coll` syntax offhand so did stuff there. But it was quite a tour the `fluid.objects~` to do this!

---

_[View the full topic](https://discourse.flucoma.org/t/class-interpolation-distance-to-classes/1903)._
