FComposableFloatDistribution

A composable floating point distribution.

Windows
MacOS
Linux

Inheritance Hierarchy

FComposableDistribution

FComposableFloatDistribution

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Distributions.h

Include

#include "Distributions.h"

Syntax

class FComposableFloatDistribution : public FComposableDistribution

Remarks

A composable floating point distribution.

Constructors

Name Description

Public function

FComposableFloatDistribution()

Default constructor.

Public function

FComposableFloatDistribution

(
    const FComposableFloatDistribution ...
)

Copy constructor.

Functions

Name Description

Public function

void

 

AddDistribution

(
    const UDistributionFloat* Floa...
)

Adds each sample in the distribution to the corresponding sample in another distribution.

Public function

void

 

Initialize

(
    const UDistributionFloat* Floa...
)

Initializes this distribution from that specified.

Public function

void

 

InitializeWithConstant

(
    float Value
)

Initializes this distribution with a constant value.

Public function

void

 

Normalize

(
    float* OutScale,
    float* OutBias
)

Normalizes each value to [0,1] and return a scale and bias to reconstruct the original values.

Public function

void

 

Resample

(
    float MinIn,
    float MaxIn
)

Resamples the distribution to include only information from [MinIn,MaxIn].

Public function

void

 

ScaleByConstant

(
    float Scale
)

Scales each sample in the distribution by a constant.

Public function

void

 

ScaleByDistribution

(
    const UDistributionFloat* Floa...
)

Scale each sample in the distribution by the corresponding sample in another distribution.

Operators

Name Description

Public function

const FCompo...

 

operator=

(
    const FComposableFloatDistribution ...
)

Assignment operator.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback