2using System.Collections.Generic;
5using System.Threading.Tasks;
16 double[] m_rgWts =
null;
40 get {
return m_mem.
Count; }
61 if (m_rgWts ==
null || m_rgWts.Length != nCount)
63 m_rgWts =
new double[nCount];
64 for (
int i = 0; i < m_rgWts.Length; i++)
70 if (m_rgIdx ==
null || m_rgIdx.Length != nCount)
72 m_rgIdx =
new int[nCount];
The CryptoRandom is a random number generator that can use either the standard .Net Random objec or t...
The memory collection stores a set of memory items.
MemoryCollection GetRandomSamples(CryptoRandom random, int nCount)
Retrieves a random sample of items from the list.
double[] Priorities
Get/set the priorities associated with the collection (if any).
int Count
Returns the current count of items.
int[] Indexes
Get/set the indexes associated with the collection (if any).
virtual void Add(MemoryItem item)
Adds a new memory item to the array of items and if at capacity, removes an item.
The MemoryItem stores the information about a given cycle.
The RandomMemoryCollection is used to randomly sample the collection of items.
void Add(MemoryItem m)
Add a new item to the collection.
void CleanUp()
Complete any final processing.
RandomMemoryCollection(int nMax)
The constructor.
void Update(MemoryCollection rgSamples)
Update - does nothing.
int Count
Returns the number of items in the collection.
MemoryCollection GetSamples(CryptoRandom random, int nCount, double dfBeta)
Return a batch of items.
The IMemoryCollection interface is implemented by all memory collection types.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...