Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TH1K.h File Reference
#include "TH1.h"
Include dependency graph for TH1K.h:
This graph shows which files directly or indirectly include this file:

Classes

class  TH1K
 TH1K class supports the nearest K Neighbours method, widely used in cluster analysis. More...
 

Functions

void AddBinContent (Int_t bin) override
 Increment bin content by 1.
 
void AddBinContent (Int_t bin, Double_t w) override
 Increment bin content by a weight w.
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
void Copy (TObject &obj) const override
 
static const char * DeclFileName ()
 
Int_t Fill (const char *name, Double_t w) override
 
Int_t Fill (Double_t x) override
 
Int_t Fill (Double_t x, Double_t w) override
 
Double_t GetBinContent (Int_t bin) const override
 
Double_t GetBinContent (Int_t bin, Int_t) const override
 
Double_t GetBinContent (Int_t bin, Int_t, Int_t) const override
 
Double_t GetBinError (Int_t bin) const override
 
Double_t GetBinError (Int_t bin, Int_t) const override
 
Double_t GetBinError (Int_t bin, Int_t, Int_t) const override
 
TClassIsA () const override
 
TH1K TH1, TArrayF R__DEPRECATED (6, 40, "Use TMath::KNNDensity")
 
void Reset (Option_t *option="") override
 
Double_t RetrieveBinContent (Int_t bin) const override
 
void SavePrimitive (std::ostream &out, Option_t *option="") override
 
void SetKOrd (Int_t k)
 
void Sort ()
 
void Streamer (TBuffer &) override
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
 TH1K ()
 
 TH1K (const char *name, const char *title, Int_t nbinsx, Double_t xlow, Double_t xup, Int_t k=0)
 
void UpdateBinContent (Int_t bin, Double_t content) override
 

Variables

Int_t fKCur = 0
 
Int_t fKOrd = 3
 
Int_t fNIn = 0
 
Int_t fReady = 0
 

Function Documentation

◆ AddBinContent() [1/2]

void R__DEPRECATED::AddBinContent ( Int_t bin)
override

Increment bin content by 1.

Passing an out-of-range bin leads to undefined behavior

Definition at line 18 of file TH1K.h.

◆ AddBinContent() [2/2]

void R__DEPRECATED::AddBinContent ( Int_t bin,
Double_t w )
override

Increment bin content by a weight w.

Warning
The value of w is cast to Float_t before being added. Passing an out-of-range bin leads to undefined behavior

Definition at line 22 of file TH1K.h.

◆ Class()

static TClass * R__DEPRECATED::Class ( )
static
Returns
TClass describing this class

Definition at line 29 of file Class.C.

◆ Class_Name()

static const char * R__DEPRECATED::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t R__DEPRECATED::Class_Version ( )
staticconstexpr
Returns
Version of this class

Definition at line 43 of file TH1K.h.

◆ Copy()

void R__DEPRECATED::Copy ( TObject & obj) const
override

◆ DeclFileName()

static const char * R__DEPRECATED::DeclFileName ( )
static
Returns
Name of the file containing the class declaration

Definition at line 43 of file TH1K.h.

◆ Fill() [1/3]

Int_t R__DEPRECATED::Fill ( const char * name,
Double_t w )
override

Definition at line 28 of file TH1K.h.

◆ Fill() [2/3]

Int_t R__DEPRECATED::Fill ( Double_t x)
override

◆ Fill() [3/3]

Int_t R__DEPRECATED::Fill ( Double_t x,
Double_t w )
override

Definition at line 27 of file TH1K.h.

◆ GetBinContent() [1/3]

Double_t R__DEPRECATED::GetBinContent ( Int_t bin) const
override

◆ GetBinContent() [2/3]

Double_t R__DEPRECATED::GetBinContent ( Int_t bin,
Int_t  ) const
override

Definition at line 30 of file TH1K.h.

◆ GetBinContent() [3/3]

Double_t R__DEPRECATED::GetBinContent ( Int_t bin,
Int_t ,
Int_t  ) const
override

Definition at line 31 of file TH1K.h.

◆ GetBinError() [1/3]

Double_t R__DEPRECATED::GetBinError ( Int_t bin) const
override

◆ GetBinError() [2/3]

Double_t R__DEPRECATED::GetBinError ( Int_t bin,
Int_t  ) const
override

Definition at line 34 of file TH1K.h.

◆ GetBinError() [3/3]

Double_t R__DEPRECATED::GetBinError ( Int_t bin,
Int_t ,
Int_t  ) const
override

Definition at line 35 of file TH1K.h.

◆ IsA()

TClass * R__DEPRECATED::IsA ( ) const
override
Returns
TClass describing current object

Definition at line 43 of file TH1K.h.

◆ R__DEPRECATED()

TH1K TH1, TArrayF R__DEPRECATED ( 6 ,
40 ,
"Use TMath::KNNDensity"  )

◆ Reset()

void R__DEPRECATED::Reset ( Option_t * option = "")
override

◆ RetrieveBinContent()

Double_t R__DEPRECATED::RetrieveBinContent ( Int_t bin) const
overrideprotected

Definition at line 9 of file TH1K.h.

◆ SavePrimitive()

void R__DEPRECATED::SavePrimitive ( std::ostream & out,
Option_t * option = "" )
override

◆ SetKOrd()

void R__DEPRECATED::SetKOrd ( Int_t k)

Definition at line 41 of file TH1K.h.

◆ Sort()

void R__DEPRECATED::Sort ( )
private

◆ Streamer()

void R__DEPRECATED::Streamer ( TBuffer & )
override

◆ StreamerNVirtual()

void R__DEPRECATED::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)

Definition at line 43 of file TH1K.h.

◆ TH1K() [1/2]

R__DEPRECATED::TH1K ( )

◆ TH1K() [2/2]

R__DEPRECATED::TH1K ( const char * name,
const char * title,
Int_t nbinsx,
Double_t xlow,
Double_t xup,
Int_t k = 0 )

◆ UpdateBinContent()

void R__DEPRECATED::UpdateBinContent ( Int_t bin,
Double_t content )
overrideprotected

Definition at line 10 of file TH1K.h.

Variable Documentation

◆ fKCur

Int_t fKCur = 0
protected

Definition at line 7 of file TH1K.h.

◆ fKOrd

Int_t fKOrd = 3
protected

Definition at line 6 of file TH1K.h.

◆ fNIn

Int_t fNIn = 0
protected

Definition at line 5 of file TH1K.h.

◆ fReady

Int_t fReady = 0
protected

Definition at line 4 of file TH1K.h.