---
name: "mlpack_kernel_KernelTraits"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_kernel_KernelTraits"
---

# mlpack\_kernel\_KernelTraits(3)

This is a template class that can provide information about various kernels.

## NAME

mlpack::kernel::KernelTraits\< KernelType \> -

This is a template class that can provide information about various kernels.

## SYNOPSIS

### Static Public Attributes

static const bool **IsNormalized** = false\
 *If true, then the kernel is normalized: K(x, x) = K(y, y) = 1 for all x.*

## Detailed Description

### template\<typename KernelType\>class mlpack::kernel::KernelTraits\< KernelType \>

This is a template class that can provide information about various kernels.

By default, this class will provide the weakest possible assumptions on kernels, and each kernel should override values as necessary. If a kernel doesn't need to override a value, then there's no need to write a **KernelTraits** specialization for that class.

Definition at line 37 of file kernel\_traits.hpp.

## Member Data Documentation

### template\<typename KernelType \> const bool mlpack::kernel::KernelTraits\< KernelType \>::IsNormalized = false` [static]`

If true, then the kernel is normalized: K(x, x) = K(y, y) = 1 for all x.

Definition at line 43 of file kernel\_traits.hpp.

## Author

Generated automatically by Doxygen for MLPACK from the source code.
