---
title: "histogram"
sidebar_label: "histogram"
description: "Kotlin binding reference: histogram."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[histogram](histogram.md)

# histogram

[common]\
fun [histogram](histogram.md)(input: [Tensor](../Tensor/index.md), bins: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = 100, range: [Tensor](../Tensor/index.md)? = null, weight: [Tensor](../Tensor/index.md)? = null, density: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;

`histogram(input: Tensor, bins: Long = 100L, range: Tensor? = null, weight: Tensor? = null, density: Boolean = false)`: the `histogram` operator.