Sha256: 6b832c3ea817b45daa18afb25458a3057e5693c8edaf38bd3e5a900a8c6c6d25

Contents?: true

Size: 729 Bytes

Versions: 9

Compression:

Stored size: 729 Bytes

Contents

#pragma once
#include "PA.h"

namespace tomoto
{
    template<TermWeight _tw>
	struct DocumentHPA : public DocumentPA<_tw>
	{
		using BaseDocument = DocumentPA<_tw>;
		using DocumentPA<_tw>::DocumentPA;
		using WeightType = typename DocumentPA<_tw>::WeightType;

		template<typename _TopicModel> void update(WeightType* ptr, const _TopicModel& mdl);

		DEFINE_SERIALIZER_BASE_WITH_VERSION(BaseDocument, 0);
		DEFINE_SERIALIZER_BASE_WITH_VERSION(BaseDocument, 1);
	};

	struct HPAArgs : public PAArgs
	{
	};

	class IHPAModel : public IPAModel
	{
	public:
		using DefaultDocType = DocumentHPA<TermWeight::one>;
		static IHPAModel* create(TermWeight _weight, bool _exclusive, const HPAArgs& args,
			bool scalarRng = false);
	};
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tomoto-0.4.0 vendor/tomotopy/src/TopicModel/HPA.h
tomoto-0.3.3 vendor/tomotopy/src/TopicModel/HPA.h
tomoto-0.3.2 vendor/tomotopy/src/TopicModel/HPA.h
tomoto-0.3.1 vendor/tomotopy/src/TopicModel/HPA.h
tomoto-0.3.0 vendor/tomotopy/src/TopicModel/HPA.h
tomoto-0.2.3 vendor/tomotopy/src/TopicModel/HPA.h
tomoto-0.2.2 vendor/tomotopy/src/TopicModel/HPA.h
tomoto-0.2.1 vendor/tomotopy/src/TopicModel/HPA.h
tomoto-0.2.0 vendor/tomotopy/src/TopicModel/HPA.h