# Module: tff.analytics

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

Libraries for using Federated Analytics algorithms.

## Modules

[`count_distinct`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/count_distinct) module: Implementation of federated HyperLogLog for counting distinct items.

[`data_processing`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/data_processing) module: A set of utility functions for data processing.

[`differential_privacy`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/differential_privacy) module: Differential privacy methods for federated analytics.

[`heavy_hitters`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/heavy_hitters) module: Libraries for computing private heavy hitters.

[`histogram_processing`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/histogram_processing) module: A set of utilities functions for histogram processing.

## Classes

[`class HierarchicalHistogramDecoder`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/HierarchicalHistogramDecoder): Hierarchical histogram decoder.

[`class IbltFactory`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/IbltFactory): Factory for string and values aggregation by IBLT.

## Functions

[`build_hierarchical_histogram_process(...)`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/build_hierarchical_histogram_process): Creates an IterativeProcess for hierarchical histogram aggregation.