struct Memo::Clustering::Cluster

Overview

Cluster of consecutive sources with similar embeddings.

Defined in:

memo/clustering.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(start_id : Int64, end_id : Int64, source_ids : Array(Int64), size : Int32) #

[View source]

Instance Method Detail

def end_id : Int64 #

Last source's external_id in the cluster


[View source]
def size : Int32 #

Number of sources in the cluster


[View source]
def source_ids : Array(Int64) #

All external_ids in the cluster (in order)


[View source]
def start_id : Int64 #

First source's external_id in the cluster


[View source]