mirror of
				https://github.com/TomHarte/CLK.git
				synced 2025-11-04 00:16:26 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			604 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			604 B
		
	
	
	
		
			C++
		
	
	
	
	
	
//
 | 
						|
//  ConfidenceSource.hpp
 | 
						|
//  Clock Signal
 | 
						|
//
 | 
						|
//  Created by Thomas Harte on 21/01/2018.
 | 
						|
//  Copyright 2018 Thomas Harte. All rights reserved.
 | 
						|
//
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
namespace Analyser::Dynamic {
 | 
						|
 | 
						|
/*!
 | 
						|
	Provides an abstract interface through which objects can declare the probability
 | 
						|
	that they are the proper target for their input; e.g. if an Acorn Electron is asked
 | 
						|
	to run an Atari 2600 program then its confidence should shrink towards 0.0; if the
 | 
						|
	program is handed to an Atari 2600 then its confidence should grow towards 1.0.
 | 
						|
*/
 | 
						|
struct ConfidenceSource {
 | 
						|
	virtual float confidence() const = 0;
 | 
						|
};
 | 
						|
 | 
						|
}
 |