MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The Bucket class contains the information describing a single range of values within a BucketCollection. More...
Public Member Functions | |
Bucket (double fMin, double fMax) | |
The constructor. More... | |
int | Contains (double fVal) |
Tests to see if the Bucket range contains the value. More... | |
int | Add (double fVal, bool bForce=false) |
Attempts to add a new value to the Bucket. More... | |
override string | ToString () |
Returns a string representation of the Bucket. More... | |
void | Save (BinaryWriter bw) |
Save the Bucket to a BinaryWriter. More... | |
Static Public Member Functions | |
static Bucket | Load (BinaryReader br) |
Load a Bucket from a BinaryReader. More... | |
Properties | |
int | Count [get] |
Returns the number of items added to the Bucket. More... | |
double | Average [get] |
Returns the average value of all values added to the Bucket. More... | |
double | Minimum [get] |
Returns the bucket minimum value. More... | |
double | Maximum [get] |
Returns the bucket maximum value. More... | |
double | MidPoint [get] |
Returns the bucket midpoint. More... | |
object | Tag [getset] |
Get/set a user specified tag. More... | |
The Bucket class contains the information describing a single range of values within a BucketCollection.
Definition at line 15 of file BucketCollection.cs.
MyCaffe.basecode.Bucket.Bucket | ( | double | fMin, |
double | fMax | ||
) |
The constructor.
fMin | The minimum value in the range. |
fMax | The maximum value in the range. |
Definition at line 28 of file BucketCollection.cs.
int MyCaffe.basecode.Bucket.Add | ( | double | fVal, |
bool | bForce = false |
||
) |
Attempts to add a new value to the Bucket.
fVal | Specifies the value to add. |
bForce | Optionally, forces adding the value to the Bucket. |
Definition at line 56 of file BucketCollection.cs.
int MyCaffe.basecode.Bucket.Contains | ( | double | fVal | ) |
Tests to see if the Bucket range contains the value.
fVal | Specifies the value to test. |
Definition at line 39 of file BucketCollection.cs.
|
static |
Load a Bucket from a BinaryReader.
br | Specifies the BinaryReader. |
Definition at line 146 of file BucketCollection.cs.
void MyCaffe.basecode.Bucket.Save | ( | BinaryWriter | bw | ) |
Save the Bucket to a BinaryWriter.
bw | Specifies the BinaryWriter. |
Definition at line 133 of file BucketCollection.cs.
override string MyCaffe.basecode.Bucket.ToString | ( | ) |
Returns a string representation of the Bucket.
Definition at line 124 of file BucketCollection.cs.
|
get |
Returns the average value of all values added to the Bucket.
Definition at line 82 of file BucketCollection.cs.
|
get |
Returns the number of items added to the Bucket.
Definition at line 74 of file BucketCollection.cs.
|
get |
Returns the bucket maximum value.
Definition at line 98 of file BucketCollection.cs.
|
get |
Returns the bucket midpoint.
Definition at line 106 of file BucketCollection.cs.
|
get |
Returns the bucket minimum value.
Definition at line 90 of file BucketCollection.cs.
|
getset |
Get/set a user specified tag.
Definition at line 114 of file BucketCollection.cs.